SYBASE Adaptive Server Anywhere
*******************************

Maintenance Release Notes for Version 8.0.2
*******************************************

Description of available downloads
==================================

    Express Bug Fixes
    ===================
    A subset of the software with one or more bug fixes. The bug fixes are 
    listed in the "readme" file for the update. A Bug Fix update may only be
    applied to installed software with the same version number.

    Some testing has been performed on the software, but full testing has not
    been performed. Customers are discouraged from distributing these files
    with their application unless they verify the suitability of the software
    themselves.

    Verified Bug Fixes
    ==================
    A complete set of the software with one or more bug fixes. The bug fixes are 
    listed in the "readme" file for the update. A Bug Fix update may only be
    applied to installed software with the same version number.

    Full testing has been performed on the software.

    Maintenance Release
    ===================
    A complete set of software that upgrades installed software from an older
    version with the same major version number (version number format is 
    major.minor.patch). Bug fixes and other changes are listed in the "readme"
    file for the upgrade.

    For answers to commonly asked questions please use the following URl:
    http://my.sybase.com/detail?id=1019567

Introduction
============
Release 8.0.2 is a regularly-scheduled maintenance release,
containing fixes to reported problems with the software
as well as some new features.

8.0.2 bug fixes
===============
The following is a list of bugs fixed in this version of the software,
as compared to the 8.0.1 release.



                      ******************************                      
                      ** Adaptive Server Anywhere **                      
                      **                          ** 
                      **   DBLIB Client Library   **                      
                      ******************************                      

================(Release Build  - Engineering Case #270319)================

If a host variable is declared as follows:



EXEC SQL BEGIN DECLARE SECTION;

char * str_host_var;

EXEC SQL END DECLARE SECTION;



sqlpp does not know the length of str_host_var.  When connected to 
a blank padded database with the option ANSI_BLANKS ON, data fetched 
into a host variable with unknown length was not correctly blank padded 
or null terminated.  This has been fixed so that in this case the fetched 
data will be null terminated but not blank padded.



This problem could have caused MobiLink to fail on blank padded database 
with the ANSI_BLANKS option ON.



Note that great care must be taken when using host variables with unknown 
length to avoid over-writing more memory than was allocated for the 
host variable, and using host variables with unknown lengths should 
be avoided where possible.  (This is documented in the "Using host variables" 
section in "The Embedded SQL Interface chapter" in the "Programming 
Interface Guide" book).


================(Release Build  - Engineering Case #279074)================

If the DEBUG=YES;LOGFILE=file connection parameters were used from a 
multithreaded client application, (using different files for each connection), 
there was a chance the application could have crashed.  When using the 
ODBC Administrator, Display debugging information in a log file, on 
the Advanced tab, is equivalent to DEBUG=YES;LOGFILE=file. This is now 
fixed.


================(Release Build  - Engineering Case #286696)================

When a client application using TCP/IP or SPX disconnected from the 
server, an error "[Sybase][ODBC Driver]Disconnect error: Transaction 
rolled back" could have occurred, (error number 01002). By default, 
the timeout for a disconnects was 5 seconds.  On a busy server, it could 
take longer than 5 seconds to hear back from the server and this would 
result in the message described above. There was no provision for a 
user specified timeout, so a new connection parameter has been added 
to specify the disconnect timeout value, (the default is still 5 seconds).The 
new option, "TIMEOUT=n" or "TO=n", is specified in the TCP/IP or SPX 
communications option string.



Example:

rc = SQLDisconnect( hdbc );

if ( (rc == SQL_ERROR) || (rc == SQL_SUCCESS_WITH_INFO) ) {

    /* get the error message */


================(Release Build  - Engineering Case #288267)================

If a client application made multiple connections, and the first connection 
did not use debug logfile, but subsequent connection(s) did, some debug 
logfile messages (including TCP/IP specific messages) would be missing. 
On Unix, some debug logfile messages (including TCP/IP specific messages) 
would be missing for all connections.



These problems have been fixed.


================(Release Build  - Engineering Case #288840)================

When an Embedded SQL application closed a cursor, some memory associated 
with the cursor was not freed until the first of the following events:

- the prepared statement used to open the cursor was dropped

- the cursor was reopened

- the connection was disconnected



Now this memory is freed immediately on the cursor close.


================(Release Build  - Engineering Case #290255)================

Attempting to build an application with Microsoft Visual Studio using 
/Zi for debug information against dblib could have failed when linking.  
The error from Visual Studio 6 was:

dblibtm.lib(sqlcadat.obj) : fatal error LNK1202: "<path>\vc60.pdb" 
is missing debugging information for referencing module.

The library dblibtm.lib has been fixed so that the link error no longer 
occurs.


================(Release Build  - Engineering Case #290450)================

If a stored procedure was defined as returning N columns but actually 
returns M columns,(where M < N), the client could have crashed if more 
tham M columns were bound. This has been fixed.


================(Release Build  - Engineering Case #289947)================

If the file asasrv.ini, (.asasrv.ini on Unix platforms), was large, 
connection attempts could be slow or even fail. This has been fixed.


================(Release Build  - Engineering Case #293215)================

If the asasrv.ini (.asasrv.ini on Unix) file was large, connection attempts 
could have been slow or have even failed. This has now been fixed. The 
asasrv.ini file will now only cache the most recent 100 entries.




                      ******************************                      
                      ** Adaptive Server Anywhere **                      
                      **                          ** 
                      **   ODBC Client Library    **                      
                      ******************************                      

================(Release Build  - Engineering Case #276169)================

An ODBC application, running with a database that had the quoted_identifier 
option set 'OFF', could have had some ODBC function calls fail. The 
driver was issuing queries that had identifies quoted, regardless of 
the option setting. The driver now issues queries, respcting the Quoted_identifier 
option setting.



================(Release Build  - Engineering Case #299855)================

When attempting a connection from an aplication running on a 32-bit 
Windows platform, and specify a non-existant datasource name, the ODBC 
Driver Manager will report an error.  On Unix or Windows CE, when not 
using a Driver Manager, a similar error will now be reported by the 
ODBC driver.  Previously no error was reported and the driver would 
go ahead and attempt to connect, often resulting in a non-informative 
error message such as 'database server not found'. An unexpected side 
effect of this change is that a connection string that contained an 
invalid datasource name could have connected successfully, if there 
was enough additional connection parameters to establish a connection.  
With the new change, an error will be reported instead.


================(Release Build  - Engineering Case #277779)================

The server could have crased after truncating a table.  For this to 
have occurred, the connection doing the truncate must have had a cursor 
open on the table being truncated and the cursor must have remained 
open after a commit or rollback.  If the table had more than 100 pages 
in it 8.x engines could have crashed regardless of cursor orientation.  
For 7.x engines (and 8.x engines on smaller tables) the cursor must 
have been going backwards through the table. This problem is now fixed.




================(Release Build  - Engineering Case #278421)================

When an application had multiple threads, doing simultaneous connections, 
and the connections used the same log file, (ie debug=yes;log=...), 
an "Unable to open client error file" message would have appeared. This 
has now been fixed.


================(Release Build  - Engineering Case #278998)================

The dbisqlc utility returned the error 'invalid user or password', if 
the connect string used DSN=datasource and the datasource had an encrypted 
password. This has been fixed.


================(Release Build  - Engineering Case #277160)================

A client application could have hung for over an hour with 100% CPU 
usage, if an attempt was made to connect to a database file, (DBF), 
which was already running and also specifying a different database name, 
(DBN).  With 8.0.0 or above, this could only happen if connecting to 
a pre 8.0.0 server.  The connection attempt will now return the error 
"Database name not unique" within a few seconds.


================(Release Build  - Engineering Case #241076)================

If a stored procedure, (called via ODBC or ASAProv), returned more than 
one result set and the second result set caused a CURSOR_OPTIONS_CHANGED 
warning to be generated,  (SQLCode 121), the second and subsequent result 
sets would not be returned to the application. This is now fixed.


================(Release Build  - Engineering Case #288639)================

A new option has been added to the ODBC datasource configuration dialog, 
labelled "Suppress fetch warnings".  Checking this option will suppress 
warning messages from the database server from being returned to the 
application.  Prior to version 8.0.0, the only warnings that were returned 
when fetching were truncation warnings and row-updated warnings.  As 
of version 8.0.0, a wider range of warnings are possible.  The new checkbox 
was introduced since some applications are not equipped to handle warnings 


returned on a fetch.


================(Release Build  - Engineering Case #291542)================

MTS support was inadvertently disabled in the 8.0 ASA ODBC driver. MTS 
support is now restored.


================(Release Build  - Engineering Case #293163)================

It was possible that SQLDescribeColW or SQLColAttributeW would have 
attempted to write past the end of the user's buffer, depending on the 
connection's CHARSET and the database's Collation Sequence.  This could 
have caused the ODBC driver to crash or return incorrect results.  This 
problem has been fixed.




                      ******************************                      
                      ** Adaptive Server Anywhere **                      
                      **                          ** 
                      **   OLEDB Client Library   **                      
                      ******************************                      

================(Release Build  - Engineering Case #276510)================

The OLEDB provider would have returned incorrect version string information 
for the DBPROP_DBMSVER property. The version reported would have had 
the correct major version number and build number, but the patch level 
was not included.  For example, the 7.0.3 release provider would have 
reported 07.00.2046.  The provider will now report 07.03.xxxx, where 
xxxx is the build number of the EBF


================(Release Build  - Engineering Case #271435)================

Preparing a command, executing it and then rexecuting it would have 
failed with the database error "Invalid Cursor state", if the command 
opened a result set.  While the problem is now fixed, removing the call 
to "Prepare" the statement would be a work around.  The problem was 
evident when using the Dataset and OleDBDataAdapter classes in a C# 
project.


================(Release Build  - Engineering Case #272848)================

Fetching data from a numeric column could have failed and caused various 
errors, if the precision of the column was less than 19. This is now 
fixed.



================(Release Build  - Engineering Case #277858)================

Using server side cursors with the ASAProv provider and associating 
a recordset with an ADO grid control would not have shown any data in 
the grid control and would not have reported any errors. This is now 
fixed.


================(Release Build  - Engineering Case #278035)================

Applications using the OLEDB provider could have crashed when creating 
and freeing multiple recordset objects. A reference counting issue, 
which led to the freeing of an object twice in some cases, has been 
fixed.




================(Release Build  - Engineering Case #278552)================

Visual Studio.Net applications, using ASA's OLEDB provider through the 
DataTable and DataAdapter classes, were returning errors while trying 
to select a column with a long varchar of unknown length. The error 
message that displayed was: "No error information available: DB_E_ERRORSOCCURRED(0x80040E21)." 
This is now fixed.


================(Release Build  - Engineering Case #279849)================

In an ADO application, a call to MovePrevious after a call to MoveLast 
could have caused an application to crash, if the rows contained large 
text columns. This has now been fixed.


================(Release Build  - Engineering Case #287012)================

Fetching more than 2 records in a result set would have truncated any 
text or blob values at 200 bytes. This is now fixed.




================(Release Build  - Engineering Case #287034)================

Updating a forward only cursor via ADO could have resulted in an error 
stating "An invalid fFetchType value was specified". This is now fixed.




================(Release Build  - Engineering Case #273547)================

Any attempt to update a recordset field value to NULL, would have been 
ignored and the change would not have been sent to the database by the 
provider. This is now fixed, but as a workaround, an update statement 
executed to specifically set the columns to NULL would still work, as 
the provider passes these directly to the server.


================(Release Build  - Engineering Case #287296)================

Character data fetched in a .Net WebService application could have had 
the last character of the data truncated. An off-by-one error was fixed.




================(Release Build  - Engineering Case #288424)================

When fetching string data using the System.Data.OLEDB components, various 
errors could have occurred. These included "Object reference not set 
to an instance of an object", data exceptions, infinte recursion errors 
and application faults. The problem has been fixed.


================(Release Build  - Engineering Case #289286)================

If a client application fetched string data with a length larger than 
199 bytes through the ASA Provider, and conversion of the data was required 
(eg. from ascii to unicode), the data returned to the application would 
have been truncated.  Visual Studio .Net data access components (including 
DataTable and DataAdapter classes) would be subject to this problem. 
It is now fixed.


================(Release Build  - Engineering Case #289983)================

When calling a stored procedure through ASAProv, if an output parameter 
was created in the application with a length of one byte, no data would 
have been returned for that parameter.  While this is now fixed, a workaround 
would be to create the parameter with a length of 2 bytes or more, then 
a one byte output parameter will be returned correctly.


================(Release Build  - Engineering Case #290469)================

If a client application fetched string data with a length larger than 
199 bytes through ASAProv, and conversion of the data was required, 
(eg. from ascii to unicode), the data returned to the application could 
have been missing the last byte.  Visual Studio .Net data access components, 
(including DataTable and DataAdapter classes), would have been subject 
to this problem. The correct data is now returned.


================(Release Build  - Engineering Case #286636)================

If a select statement caused a warning to be generated, (eg. "Null value 
eliminated in aggregate function"), ASAProv would sometimes have returned 
an error, causing applications to stop processing the result set.  As 
a result ADO applications could report errors such as "Invalid operation 
- EOF or BOF has been reached". Now warnings, with the exception of 
a problem that occurs when dealing with a truncation warning, are no 
longer treated as an error.


================(Release Build  - Engineering Case #291070)================

When accessing the database via ASAProv, if a user opened a cursor, 
fetched some rows and then tried to get a row count on the cursor, the 
provider would have returned either 1 or 0, instead of the actual row 
count. Now, the actual rowcount is returned or -1 if it is unable to 
determine the actual rowcount, (in compliance with the OLEDB spec.)




================(Release Build  - Engineering Case #291233)================

Using the same OLEDB command object to execute a command more than 1024 
times, would have caused an out of memory error. This has been fixed.


================(Release Build  - Engineering Case #292656)================

When updating numeric fields in an ADO recordset through ASAProv, several 
problems could have occurred.  The value could have failed to be updated 
at all, it could have been updated with the decimal point in the wrong 
place, or it could have been updated to a value completely different 
from the one specified in the update. This problems have been fixed.


================(Release Build  - Engineering Case #280167)================

When updating variant array data through the ASA provider, the array 
data could have been omitted, have been updated with incorrect values 
or the update could have failed.  This could alsi have happened using 
ADO, if a Variant type was used to insert data into a field in a recordset. 
This problem is now fixed.




================(Release Build  - Engineering Case #279048)================

Rowset data accessors were not always freed when the rowset was deleted.  
This would show up when using datareaders in VStudio.Net.  The ASA provider 
would leak memory each time the reader was opened and closed (usually 
about 80 bytes). This has been fixed.


================(Release Build  - Engineering Case #295225)================

When fetching strings or blobs larger than 200 bytes through the ASA 
provider, the last byte would have been truncated if no data conversion 
took place. This has been fixed.




================(Release Build  - Engineering Case #294728)================

Variable length output parameters returned from stored procedures were 
not always accessible to .Net applications, (ie C#, Visual Basic and 
Visual C Ver. 7), using ADO. This has been fixed.




                      ******************************                      
                      ** Adaptive Server Anywhere **                      
                      **                          ** 
                      **          Other           **                      
                      ******************************                      

================(Release Build  - Engineering Case #299630)================

When applying the 8.0.1 maintenance patch to an 8.0.0 installation, 
the encryption libraries (libdbtls8[_r].so) do not get upgraded to the 
8.0.1 version. A side affect of this, is that applying 8.0.1 EBFs to 
an upgraded 8.0.0 install will not apply the EBF as the encryption library 
is of an older 8.0.0 version.



This is now fixed with the 8.0.2 patch, but a work around would be:

In the maintenance install directory, copy the file 'encryption_ml' 
in the 'files' directory to 'encryption' and rerun the install. This 
will ensure that the encryption libraries get updated. A regular 8.0.1 
EBF can be applied to the updated 8.0.0

install.






                      ******************************                      
                      ** Adaptive Server Anywhere **                      
                      **                          ** 
                      **          Server          **                      
                      ******************************                      

================(Release Build  - Engineering Case #276512)================

After creating a new database, the spt_jtext table would have had enties 
that misspelled the keywords REFERENCES and TRIGGER.  This could affect 
JConnect support. The jcatalog.sql script has been corrected.



================(Release Build  - Engineering Case #276796)================

A new database option Prevent_article_pkey_update  has been added, When 
Prevent_article_pkey_update is set to ON, the database server disallows 
any updates to the primary key columns of tables that are part of any 
publication, i.e., tables that have articles defined on them.



================(Release Build  - Engineering Case #275849)================

Java applications, or any application that connects to the database 
server over TDS, automatically inherit connection option settings for 
ASE compatibility, as per the procedure sp_tsql_environment():

CREATE procedure dbo.sp_tsql_environment()
    begin
	if db_property( 'IQStore' ) = 'OFF' then
	    -- ASA datastore
	    SET TEMPORARY OPTION AUTOMATIC_TIMESTAMP='ON';
	end if;
	SET TEMPORARY OPTION ANSINULL='OFF';
	SET TEMPORARY OPTION TSQL_VARIABLES='ON';
	SET TEMPORARY OPTION ANSI_BLANKS='ON';
	SET TEMPORARY OPTION TSQL_HEX_CONSTANT='ON';
	SET TEMPORARY OPTION CHAINED='OFF';
	SET TEMPORARY OPTION QUOTED_IDENTIFIER='OFF';
	SET TEMPORARY OPTION ALLOW_NULLS_BY_DEFAULT='OFF';
	SET TEMPORARY OPTION ON_TSQL_ERROR='CONTINUE';
	SET TEMPORARY OPTION FLOAT_AS_DOUBLE='ON';
	SET TEMPORARY OPTION ISOLATION_LEVEL='1';
	SET TEMPORARY OPTION DATE_FORMAT='YYYY-MM-DD';
	SET TEMPORARY OPTION TIMESTAMP_FORMAT='YYYY-MM-DD HH:NN:SS.SSS';
	SET TEMPORARY OPTION TIME_FORMAT='HH:NN:SS.SSS';
	SET TEMPORARY OPTION DATE_ORDER='MDY';
	SET TEMPORARY OPTION ESCAPE_CHARACTER='OFF';
	SET TEMPORARY OPTION CLOSE_ON_ENDTRANS='OFF';
    end 
go

With ANSINULL=OFF, equality comparisons involving a procedure variable, 
or a host variable, are rewritten to correspond to ASE's TSQL semantics. 
As an example, the equality comparison

Where T.x = @var

is rewritten as

Where T.x = @var or ( T.x is null and @var is null ).

This rewrite transforms a sargable predicate into a non-sargable disjunctive 
clause to ensure a correct result even if the variable's value is unknown 
at optimization time. Consequently, an access plan involving an indexed 
retrieval of table T was not possible, and the query may consequently 
suffer from poor performance.

As a workaround, one can set ANSINULL=ON in the application, or add 
syntactic obsfucation so that the rewrite does not occur, as in

Where T.x = @var+1-1.

Note that TSQL semantics surrounding NULL comparisons only hold for 
predicates where the RHS of the equality comparison involves a simple 
expression of either the literal NULL or a variable reference.


================(Release Build  - Engineering Case #276880)================

The constants 32767, -32767, and -32768 were incorrectly treated as 
INT rather than SMALLINT when used in a query.  For example, the single 
column for each of the following queries is now described as a SMALLINT:

select 32767

select -32767

select -32768


================(Release Build  - Engineering Case #277228)================

Keyset driven, (scroll), cursors that used an aggregate function as 
a HAVING predicate and in the SELECT list could have caused the server 
to crash or I/O errors, if there was an intervening work table.

For example:
	select  DT.y
	from    employee E
	                join
	        ( select    manager_id, max(emp_fname) as EmpFname
	          from      employee E2
	          group by  manager_id ) DT(x,y)
	        on E.emp_id = DT.x
	where   DT.y >= 'M'
	for update

The important characteristics of the query are the following:
- a group-by is joined to a base table
- a keyset-driven cursor is used, either because it was requested or 
because it is needed to make the cursor updateable (note that joined 
cursors default to read-only if ansi_update_constraints has its default 
value, but otherwise default to updateable in ESQL and SP)
- an aggregate function is used in a predicate below a work table (for 
example, the table associated with a sort or hash join)
- the same aggregate function appears in the select list
- the argument to the aggregate function did not allow NULLs

The engine could generate an I/O error such as:
	I/O error Fatal error: No such file or directory -- transaction rolled 
back [-305] ['40W04']
or an assertion such as:
	102300, "File associated with given page id is invalid or not open"
or a fatal error such as:
	Fatal error: Unknown device error
or crash.

This problem has now been fixed.


================(Release Build  - Engineering Case #277381)================

Proxy tables were not being displayed in the graphical plan view in 
dbisql This has been fixed.



================(Release Build  - Engineering Case #277454)================

If the public option TRUNCATE_TIMESTAMP_VALUES was ON, and the public 
option DEFAULT_TIMESTAMP_INCREMENT was such that timestamp values would 
have lost precision and optimization logging was enabled for a particular 
connection, the server may have asserted with assertion number 103102. 
This problem has been corrected.


================(Release Build  - Engineering Case #266094)================

Join elimination, based on a foreign key defined on a unique constraint, 
may have been done incorrectly, resulting in wrong result sets or syntax 
errors. The conditions under which this may have occurred were:
1 - There were at least two unique constraints, (one may have been 
a Primary Key constraint ), defined on a table, (P in example)
2 - The query referenced only  the columns on one of the unique constraints.
3 - The query had equijoin predicates with a foreign key table, (F 
in example), where the foreign key was defined on the other unique constraint

Example:
 
CREATE TABLE P(
	one	CHAR(4) NOT NULL  
	two	INTEGER NOT NULL PRIMARY KEY,
	UNIQUE(one,two)
);
CREATE TABLE F(
	two INTEGER NOT NULL REFERENCES two(two)
);

SELECT * FROM  P  KEY JOIN F;   

This problem has now been fixed.



================(Release Build  - Engineering Case #277219)================

Using Insensitive cursors or  queries with plans that used merge-joins, 
could have given incorrect results, since 8.0.0 build 2284. The number 
of rows returned would be correct, but the values of some attributes 
might have been wrong. This is now fixed.


================(Release Build  - Engineering Case #277386)================

If the database option, Extended_ join_syntax, was ON and  a table was 
used in two left outer Joins and one inner join (i.e., KEY, NATURAL 
or JOIN with ON clause), duplicate table elimination may have triggered 
a server crash. As well, the inner join must have referenced a column 
that was not referenced anywhere else in the query. This problem is 
now fixed.


================(Release Build  - Engineering Case #277800)================

New ON predicates are inferred based on WHERE predicates. If a WHERE 
predicate referenced only the NULL-supplying table in an outer join, 
and was NULL tolerant, the wrong result set may have been returned.

For example:
 
create table T1 (a int);
create table T2 (a int);
insert into T1 values (2);
insert into T2 values (2);

The query:
select T1.a,T2.a
from T1 left outer join T2 on T1.a=T2.a
where t2.a is null

was incorrectly rewritten as:
select T1.a,T2.a
from T1 left outer join T2 on T1.a=T2.a and T1.a is NULL
where T2.a is null

This problem has been fixed.


================(Release Build  - Engineering Case #278388)================

If a query contained an ORDER BY clause with ordinal elements that referred 
to a SELECT list element containing a NUMBER(*) function, the engine 
would have failed to flag the query as illegal and the query would generate 
incorrect results, rather than SQLCODE -864.



For example, the following query would not generate SQLCODE -864:



Select NUMBER(*), description

From product

Order by 1



This problem has been fixed.


================(Release Build  - Engineering Case #260400)================

Core files, from servers or clients on Linux, now have more useful stack 
trace information on the thread that caused the fault. In the cleanup 
signal handlers,  pthread_kill_other_threads_np() is now called to force 
all other threads to exit before calling abort(). This change allows 
core dumps to contain the stack trace information of 

the thread running the signal handler, (usually the one that caused 
the violation), rather than the stack trace of the last thread that 
terminates in the process.


================(Release Build  - Engineering Case #274125)================

The Personal Server would have started, even if the protocols specified 
by the -x command-line option could not be started. In these cases the 
Network Server always stopped with an error. Now the Personal Server 
will also stop, if a requested protocol cannot be started.


================(Release Build  - Engineering Case #278790)================

If a WITH HOLD cursor was open on a table, and a publication involving 
that table was altered or dropped, subsequent updates or deletes through 
the cursor could have caused assertion 100905. If a new publication 
was created on a table while a WITH HOLD cursor was open on it, no assertion 
would be generated, but invalid information would be

written to the transaction log. This has been fixed; all cursors on 
a table will now be closed if a publication involving the table is created, 
altered or dropped.






================(Release Build  - Engineering Case #278904)================

If a server was started with the -b switch, (bulk operations mode), 
a DROP DATABASE statement would have failed to delete the transaction 
log for the dropped database. This has been fixed.


================(Release Build  - Engineering Case #279026)================

If variable of type unsigned int, bigint or unsigned bigint was used 
in a remote query, and the variable contained a value that was greate 
than 2147483647 or less than -2147483648, then the query would have 
returned incorrect results. For example, the following would have returned 
an incorrect result:



	CREATE VARIABLE v UNSIGNED INT;

	SET v = 3000000000;

	SELECT * FROM remote_table_t WHERE c = v;



(Note that remote_table_t is a proxy table in this example).



This problem has now been fixed.


================(Release Build  - Engineering Case #273083)================

Subquery flattening is now always done for subqueries of the form "select 
expr from DUMMY" or its equivalent form  "select expr".  
For example:

select * 
from product p, sales_order_items s
where p.id = ( select DISTINCT 301) and s.prod_id = p.id

is rewritten into:

select * 
from product p, sales_order_items s
where p.id = 301 and s.prod_id = p.id and s.prod_id = 301
 
There are three rewrite optimizations done in this example: 
1 - DISTINCT is eliminated from "(select DISTINCT 301)"
2 - subquery "(select 301)" is flattened and  "p.id = ( select DISTINCT 
301)" is rewritten to "p.id = 301"
3 -  "s.prod_id = 301" is inferred from  "p.id = 301" and "p.id = s.prod_id".

IQ: The subquery flattening is now always done for  IQ, for any subquery 
of the form "(select expr from DUMMY)" regardless if the subquery is 
correlated or not.


================(Release Build  - Engineering Case #278532)================

If an UPDATE or DELETE statement was used to update or delete from a 
base table joined with a proxy table, the server could have crashed, 
rather than give the expected message:



	Update operation attempted on non-updatable query



This problem has now been fixed.


================(Release Build  - Engineering Case #278686)================

Queries containing complex conditions in an ON, WHERE, or HAVING clause 
are rewritten to correspond to ANSI semantics when the option ANSINULL 
is set to OFF. For example, given the variable @id, the SELECT statement



Select *

From Product P

Where  P.id = @id



is rewritten as 



Select *

From Product P

Where  P.id = @id or (p.id is null and @id is null)



An optimization takes place to simplify this disjunctive clause when 
the cursor is OPENed (and the values of the variables are known). An 
error in this optimization may have caused the server to yield incorrect 
results when the original WHERE clause was more complex; for example, 
an error is possible if other disjunctive conditions appear in the WHERE 
clause. This problem has been corrected.


================(Release Build  - Engineering Case #279147)================

If the DBCONSOLE utility was left connected to a database which did 
not have jConnect or Java support installed, the server would report 
a fatal error, (device error), after approximately 6.5 hours. This has 
now been fixed.


================(Release Build  - Engineering Case #279544)================

After Java objects were loaded using the LOAD TABLE statement, they 
could have been corrupted or not viewable in Sybase Central or dbisql. 
This was due to the objects not being fully initialized before de-serialization 
was attempted. They now are.




================(Release Build  - Engineering Case #279353)================

When an SPX connection to an ASA server running on NetWare was disconnected, 
it was possible for the NetWare server to abend. This has been fixed.


================(Release Build  - Engineering Case #265354)================

The Sybase Adaptive Server Enterprise server does not allow any Transact-SQL 
assignments, (ie @variable = expression), in an IF EXISTS statement 
or in subqueries. The Adaptive Server Anywhere server did allow it, 
but did not set the variable in these cases. Now Transact-SQL assignments 
in IF EXISTS or in a subquery cause a syntax error.


================(Release Build  - Engineering Case #265875)================

A complex expression referenced in an ORDER BY clause, that involved 
a CASE expression could have failed unexpectedly, possibly causing the 
server to crash or raise an assertion. The following example would have 
caused the server to crash:



create table kuku

(k1 integer not null primary key,

k2 integer,

l1 integer

);



create table lulu

(l1 integer not null primary key,

l2 integer

);



select

kuku.k1,

sum(kuku.k2) as "SMK"

from kuku

left outer join lulu on kuku.l1 = lulu.l1

group by kuku.k1

order by case 1 when 1 then SMK end desc



As written, this SELECT statement would have crashed the server. If 
the CASE statement included an ELSE, then it would have executed correctly.


================(Release Build  - Engineering Case #277185)================

Attempting to fetch a string that was 254 bytes in length, from a remote 
table using an ODBC based remote server, would have resulted in the 
last byte of the string being corrupted. This problem has now been fixed.


================(Release Build  - Engineering Case #279576)================

If a query involved more than 40 proxy tables on multiple remote servers, 
there was a very good chance the query would have crashed the server. 
This problem has now been fixed.


================(Release Build  - Engineering Case #279700)================

If a database containing proxy tables was unloaded and then subsequently 
reloaded, the reload could have sometimes failed with an "index not 
unique" message. This problem has now been fixed.




================(Release Build  - Engineering Case #279841)================

Starting a database with the Runtime Server, (rteng8.exe), would have 
caused an empty log file for the database to be created. This is now 
fixed, but a workaround was to force the database to not have a log 
by running "DBLOG -n database-file".


================(Release Build  - Engineering Case #279448)================

Using LOAD TABLE on a table with a NOT NULL computed column could have 
corrupted the database, if the table contained check constraints and 
the CHECK CONSTRAINTS option for LOAD TABLE was enabled. If the column 
allowed NULL, the value of the computed column would be NULL regardless 
of the compute expression. This is now fixed.


================(Release Build  - Engineering Case #275177)================

A failed Create Database statement could have resulted in a partially 
initialized database being created.  This database would have been usable, 
but would not contain all of the selected features.  The proper syntax 
error is now reported.


================(Release Build  - Engineering Case #277837)================

Dates in the range [0001/1/1 to 1600/1/1), specified either as a date 
or a part of a timestamp, all sorted to the same position when inserted 
into an index.  This could have lead to incorrect query results, (if 
an index is used in the evaluation of a query), or could have resulted 
in spurious constraint violations. Dates in this range will now sort 
correctly.


================(Release Build  - Engineering Case #279739)================

Under the following conditions, the next available value for a column 
having a GLOBAL AUTOINCREMENT default value would not have been set 
correctly:

- Database recovery was performed at startup.

- The table containing the column was referenced in the transaction 
log during recovery.

- An INSERT into the table with no value specified for the GLOBAL AUTOINCREMENT 
column was attempted before shutting down the database.




================(Release Build  - Engineering Case #280201)================

If a database table with a timestamp column contained any rows at the 
time that the TRUNCATE_TIMESTAMP_VALUES option was set to 'ON', and 
the DEFAULT_TIMESTAMP_INCREMENT option was not set to 1, then updating 
a row in this table without simultaneously updating the timestamp value(s) 
in the row could cause assertion 103102 to be raised, if the row's width 
was increased.  This has been fixed.



Note that turning on the TRUNCATE_TIMESTAMP_VALUES option or increasing 
the DEFAULT_TIMESTAMP_INCREMENT when there is timestamp data in the 
database will not guarentee that the pre-existing timestamp values will 
be truncated appropriately.  This may lead to unexpected behaviour, 
particularly in replicating environments.   If you need to change either 
of these options, it is highly recommended that you unload your data, 
dbinit a new database, set the options appropriately, then reload your 
data.  These steps will ensure that all timestamp values in the new 
database are truncated correctly.




================(Release Build  - Engineering Case #275562)================

Queries containing CURRENT DATE, CURRENT TIME, CURRENT TIMESTAMP or 
CURRENT UTC TIMESTAMP expressions could give wrong results, whenever 
the following conditions were true:



1 - The expression must have appeared in multiple contexts in the execution 
plan

2 - The contexts must have been separated by a work table



The following is an example of a query affected by this problem:

	select	current date, user_name

	from	sys.sysuserperm P1 key join systable

	where	if current date = current date then 1 endif = user_id

	union

	select	current date, ''

	where	if current date = current date then 1 endif = 1

provided that hash join or merge join was used for the join method, 
the above query would not return the second row.


================(Release Build  - Engineering Case #280262)================

Executing ALTER DATABASE CALIBRATE could have generateg the following 
spurious error:

	"At least one of the dbspaces was not calibrated."



and could also have failed to calibrate some dbspaces. This problem 
is now fixed. The above error is still issued if one of the dbspaces 
being calibrated is smaller in size than the threshold value of 800 
pages.


================(Release Build  - Engineering Case #280289)================

If a referential action trigger, (e.g. a CASCADE foreign key), was executed 
while procedure profiling was enabled, then the server would have crashed 
when an attempt was made to retrieve the profile information. This is 
now fixed.


================(Release Build  - Engineering Case #291648)================

Executing Java code within the server, could have caused it to hang, 
if an exception was thrown. The server could not have been shut down 
when this occurred. This problem is now fixed.




================(Release Build  - Engineering Case #286090)================

The ALTER DATABASE CALIBRATE [SERVER] statement can be used to recalibrate 
the cost model for all dbspaces in the database. A dbspace is considered 
for calibration only if its size exceeds 800 pages. When the server 
found a dbspace, it stopped looking at the remaining dbspaces and returned 
immediately with an error. Now the server will consider all existing 
dbspaces and calibrate all that meet the minimum size requirement. Further, 
the server will no longer issue an error if it succeeds in calibrating 
all eligible dbspaces. An error will still be raised, if no eligibile 
dbspaces exist or the calibration fails for some other reason.


================(Release Build  - Engineering Case #286131)================

The database server did not correctly save the gathered statistics on 
BETWEEN predicates, when the predicates were on character type columns 
with a declared domain length greater than 7. These statistics will 
now be saved and used correctly


================(Release Build  - Engineering Case #286165)================

A LOAD TABLE statement, not using any of the STRIP ON, ESCAPES ON or 
QUOTES ON clauses, would have inserted incorrect data for the last value 
in the data file, if the last row of the data file did not end in a 
newline character. This is now fixed.




================(Release Build  - Engineering Case #286180)================

When run on AIX 5, the server could have taken an unusually long time 
to start. This has been resolved.


================(Release Build  - Engineering Case #286287)================

The database server collects information on selectivities of predicates 
during query execution. Under some situations, selectivities of predicated 
on string data were not saved and were lost on database shutdown. These 
selectivities are now correctly saved.




================(Release Build  - Engineering Case #286637)================

Executing a LOAD TABLE statement against a table with an invalid CHECK 
constraint, could have caused the server to crash. This has been fixed


================(Release Build  - Engineering Case #291904)================

It is now possible for one of the indexes on a table to be declared 
as a clustered index, which causes the table rows to be stored in an 
"approximate" key order corresponding to the index. In particular, LOAD 
TABLE will now insert rows into the table in the order of the index 
key and INSERT will attempt to put new rows in the same table page as 
the one containing adjacent rows as par key order. It should be noted 
that clustering provided by this new feature is approximate, i.e., while 
the server makes an attempt to preserve key order, total clustering 
is not guaranteed. Also, the optimizer will now assume that the table 
rows are stored in key order and cost index scans accordingly. Over 
time, as more rows are inserted and clustering degrades, order can be 
restored via the use of REORGANIZE table which will now rearrange rows 
according to the clustering index (if one is not declared, the order 
used will be P Key as before.




================(Release Build  - Engineering Case #286891)================

If a CASE expression contained only constant WHEN values and included 
an ELSE value, NULL would have been returned instead of the ELSE value, 
if the lookup value was NULL. In the following example, the value of 
"rslt" when "c1" is NULL should be 'other', but was returned as NULL 
before this fix.



create table case_null( pk int primary key, c1 int, expected char(10) 
);

insert into case_null values (1,1,'one');

insert into case_null values (2,2,'two');

insert into case_null values (3,3,'other');

insert into case_null values (4,null,'other');

commit;



select 

	c1,

	case c1 

	when 1 then 'one' 

	when 2 then 'two'

	else 'other'

	end as rslt,

	expected

from case_null;


================(Release Build  - Engineering Case #286909)================

The statement string returned by sa_get_request_times() would have included 
a trailing double-quote and newline character. These have now been removed.




================(Release Build  - Engineering Case #273721)================

The BACKUP DATABASE statement was previously not supported on CE devices. 
The form used for image backups, (i.e. BACKUP DATABASE DIRECTORY ...) 
is now supported. This statement may also be used to rename or truncate 
the transaction log, in addition to making a backup of the database.


================(Release Build  - Engineering Case #287103)================

If a server was extremely busy, connection attempts over links other 
than shared memory may fail with the error "Database cannot be started 
-- ???".  This has been fixed.


================(Release Build  - Engineering Case #286263)================

When optimizing queries with a high join degree, the enumeration process 
will now take into account the number of outer-joins a preserved side 
table belongs to, when ranking the candidates during enumeration. Also, 
high join degree queries will nolonger use the operators Sort Merge 
Outerjoin and Block Nested Outerjoin.  




================(Release Build  - Engineering Case #286265)================

The optimizer's enumeration process will now cost first pipelined join 
methods, (e.g., Nested Loops), if the inner table has a unique index 
that can be explored or the inner table has more than 50% of the pages 
in the cache.


================(Release Build  - Engineering Case #287307)================

Temporary strings longer than the database page size could have become 
corrupted.  For this to have occurred, the page size of the affected 
database must have been smaller than the server page size, (this problem 
could not have occurred if the database page size was the same as the 
server page size).  One manifestation of this problem was spurious syntax 
errors for long statements or queries. This has now been fixed.


================(Release Build  - Engineering Case #287488)================

A race condition existed, when loading user group definitions, that 
could have caused the server to crash. Group definitions are only loaded 
once for each user, the first time it is referenced at startup or after 
a DDL statement changes user or group definitions, so the likelihood 
of the problem occurring was very small, and would not have occurred 
on single-CPU Win32 platforms. This problem is now fixed.


================(Release Build  - Engineering Case #287271)================

The VALIDATE TABLE statement could have complained of missing index 
entries, when in fact all entries did exist exist or might not have 
complained when entries did not exist. As well, keyset cursors might 
have misbehaved when repositioning and spurious 100801 assertions were 
possible.  For these problems to have occurred the index associated 
with the failing operation must have been trie-based, the associated 
row must have appeared in the first entry of the leaf page, and it must 
have been possible, (ignoring uniqueness constraints), to insert an 
entry with the same value on the previous leaf page.  These errors should 
have been relatively rare, (the most common being the spurious VALIDATE 
TABLE failures.)


================(Release Build  - Engineering Case #287347)================

The server could have crashed when inserting values into a B-Tree index.  
This could only have occurred when inserting into an index built with 
the fast index creation code and only when inserting a small value, 
(one that would force a leftmost internal B-Tree page to split). This 
is now fixed.




================(Release Build  - Engineering Case #280050)================

If a prepared statement caused an error when executed, (e.g. Update 
attempted on non-updatable query), a second attempt to execute the same 
prepared statement could have crashed the server. This could also have 
happened when attempting to execute an update or delete on a non-updatable 
view.




================(Release Build  - Engineering Case #286402)================

The server could have crashed on the first Java request made after the 
server started. This problem would only have occurred for databases 
initialized with JDK1.3.1 or higher. It is now fixed.


================(Release Build  - Engineering Case #287447)================

The server could have sent back a column description with an invalid 
MBCS character, or filled the server's temp file, (and eventually assert), 
when all of these following conditions existed:



- the database was using a multibyte collation

- the select list contained an expression using multi-byte characters 
which was greater than 255 bytes long, and was not aliased

- the client application issueed a describe cursor request



This has been fixed, but a work-around is to provide an alias to the 
long expression.


================(Release Build  - Engineering Case #287989)================

If a keyset-driven (ESQL SCROLL) cursor was opened over a query that 
referred to an aggregate function in the select list, the aggregate 
function could have been computed over NULL instead of the correct argument. 
For this situation to have occurred, the argument to the aggregate function 
must have been a complex expression (such as x+y or CAST( x as DOUBLE)), 
and the argument must have been referred to in the query in a location 
below a materializing operator feeding the grouping operator, and the 
columns referred to in the complex expression were not used elsewhere 
above the materialzing operator.  In addition to cursors, some UPDATE 
statements could have had the same problem. For example, a keyset-driven 
cursor over the following query would have returned NULL for the 'mx' 
attribute:



select  *

from    R R1

        join

        ( select    R2.y, max(R2.x-1)

          from      R R2 join R R3 on R2.y=R3.y

          where     R2.x-1>0

          group by  R2.y ) DT(gb,mx)

        on R1.y = DT.gb

where   R1.x < 5


================(Release Build  - Engineering Case #288068)================

Disjunctive clauses that contained two or more predicates that referenced 
the same expression as one operand, and an identical constant as the 
other operand, were incorrectly processed during rewrite optimization 
and may have yielded incorrect results. For example, 



Select *

From Product

Where id < 601 or id = 601



would have resulted in the second predicate being dropped from the 
query altogether; hence the product row with id 601 would not have appeared 
in the result set. This is now fixed.


================(Release Build  - Engineering Case #288225)================

When using TCP/IP with DoBroadcast=NONE, (aka UseUDP=NO), 6.0.x clients 
would have failed to connect to 8.0.x servers. This has been fixed


================(Release Build  - Engineering Case #288427)================

A query that had an ORDER BY clause and had a table with an index whose 
columns were all equated to constants, could have returned rows in an 
order that did not match the ORDER BY clause. This is now fixed.


================(Release Build  - Engineering Case #288455)================

When the procedure debugger is at a breakpoint, View/Other/Query allows 
a query to be executed and the result set displayed. If the query was 
longer than 255 bytes, it would have caused the server to crash. This 
problem has been corrected.


================(Release Build  - Engineering Case #288465)================

Attempts to use a Java class that had been replaced by a newer instance 
could have given incorrect results, caused an endless loop, or a crash. 
This is now fixed.


================(Release Build  - Engineering Case #288265)================

If a query contained a predicate of the form:

	( x BETWEEN y AND z, 10.0)

where 10.0 was user estimate of the selectivity of the BETWEEN predicate, 
the server would ignore the supplied estimate and revert to the built-in 
default.  Further, if a query contained a predicate of the form:

	(x >= 10, 5.0) AND x <= 11

the user estimate of 5.0 would again be ignored by the server. This 
has been fixed.




================(Release Build  - Engineering Case #288451)================

When running an encrypted database on Windows CE and using the server 
option -ep, (Prompt for encryption key), the server did not prompt for 
the key. This has been fixed.


================(Release Build  - Engineering Case #288570)================

If a query with an order by clause is executed with an optimization 
goal of 'first-row', and there exists an index that can be used for 
satisfying the order by clause, then a likely optimal plan is one that 
uses that index and a pipelined execution strategy. However, the server 
could instead have chosen a plan that did not use the index and materialized 
the entire result set before returning the first row. The problem is 
more likely to be seen when the estimated cost of the query is relatively 
small. The server will now pick an optimal plan in this case.




================(Release Build  - Engineering Case #278356)================

Two servers from different major versions could not have been loaded 
on a NetWare server at the same time, due to of exported name collisions. 
This limitation has now been removed. Note that it is not possible to 
load two servers of the SAME major version at the same time (i.e. loading 
dbsrv8.nlm twice). There is a restriction however, SPX can only be used 
by one server at a time.

When attempting to connect over shared memory, dblib.nlm will first 
look for exported functions with the same version number (i.e. 7.x clients 
look for a 7.x server). If that export is not found, it will look for 
exports with DIFFERENT

version numbers, starting at 6 and going up to the current version 
plus 3. This means that 6.x clients will be able to connect over shared 
memory to version 6, 7, 8, and 9 servers, version 7.x client will be 
able to connect to version 6, 7, 8, 9, and 10 servers, and so on.



Note that because the version with the same number is searched for 
first, a version X client will connect to a version X server if more 
than one server is running and no engine name is specified by the client.


================(Release Build  - Engineering Case #288633)================

If a stored procedure exception handler called another procedure to 
deal with the error, and the called procedure executed a RESIGNAL, the 
RESIGNAL would have been ignored. This is now fixed.


================(Release Build  - Engineering Case #278392)================

If a connection had a WITH HOLD cursor, open at an isolation level greater 
than 0, positioned on a row, then deleted the row, (via this or another 
cursor/statement), and  did a COMMIT, the connection would have had 
a short-term read lock on a non-existent row (since cursor stability 
locks for with hold cursors persist across commit/rollback).  This could 
prevent another transaction from inserting a row into the table in question 
(if it decides to insert the row at the vacant slot left by the delete). 
The Cursor Stability lock is now removed in this case.


================(Release Build  - Engineering Case #288515)================

If an unsigned integer or smallint value was used as the argument to 
the abs() function and the value was greater than the maximum value 
for the corresponding signed type, the result would be incorrect. For 
example, the expression:

	abs(cast(65535 as unsigned smallint))

returned 1 instead of 65535. The correct value (65535 in this example) 
is now returned.




================(Release Build  - Engineering Case #289017)================

Any query search condition x=y would return FALSE, if the declared type 
of x was java.lang.Object.  If the declared type of x was another java 
class, the comparison would be performed using the isEqual() method 
of the class.



For example, the following would incorrectly return 0:



create variable v1 java.lang.Object;

create varaible v2 java.math.BigDecimal;

set v1 = new java.math.BigDecimal(12);

set v2 = new java.math.BigDecimal(12);

select count(*) as cnt from sys.dummy where v1=v2



However, the following query would correctly return 1:

select count(*) as cnt from sys.dummy where v2=v1



This error could have caused database recovery to fail if a column 
declared as java.lang.Object appeared in a table without a primary key. 
This is now fixed.


================(Release Build  - Engineering Case #289130)================

If a DISCONNECT event handler was defined, a disconnect which caused 
an auto-shutdown of the database may not have caused the event handler 
to be executed. This problem would have happened on single-processor 
servers, but was unlikely to happen on multi-processor servers, unless 
the database server was started with the "-gt 1" command-line option 
to limit the number of OS threads used. The DISCONNECT event handler 
will now execute correctly.


================(Release Build  - Engineering Case #276705)================

The SQLGetData function was over writing memory if the bind_offset_ptr 
was set. It should have ignored the value of this pointer, which is 
used to adjust the location for fetching bound columns.  This problem 
only affected scalar types. It is now fixed.




================(Release Build  - Engineering Case #288657)================

The server could have hung during start up, if multiple servers were 
starting at the same time, with the same name, on a Windows platform.  
The server will no longer hang, only one engine with the same name will 
start successfully.


================(Release Build  - Engineering Case #274536)================

Weak, Soft and Phantom Java References were failing to queue. This has 
been fixed.


================(Release Build  - Engineering Case #289554)================

For simple queries of the form:

	SELECT	<col-list>

	FROM		<single table>

	WHERE	<column> = <constant> [AND ...]

if the constant did not have the same domain as the column, then the 
engine could have returned an error (could not convert <constant> to 
...), returned rows that did not match the search condition, or it could 
have failed to return rows that would normally be returned.



For example, the following query:

	select	*

	from	department

	where	dept_id=100.1

would have returned the row with dept_id=100.  Before the fix, the 
constant was always converted to the domain of the column, and the comparison 
was performed in the domain of the column. If the constant could not 
be converted to the domain of the column (for example, comparing a smallint 
column to 60000), then a conversion error was generated.  If a numeric 
constant was compared to a string column, the number was converted to 
a string and compared lexically; the correct behaviour should convert 
the string column to a numeric type for comparison to the number.



This incorrect behaviour only occurred if the query was simple enough 
to bypass optimization (see the QueryBypassed property). Queries containing 
features such as joins, grouping, and complex search conditions would 
not be affected by this issue.



In cases where the constant can not be converted to the column domain 
without loss of precision, both the column and constant are now converted 
to a common comparison domain, and the comparison is now performed in 
the comparison domain. In this case, an index can not be used to satisfy 
the search condition.


================(Release Build  - Engineering Case #289843)================

When the option optimization_logging was set 'on', the server should 
have output a row to the SYSOPTREWRITE table for each query rewrite 
optimization applied to each statement for that connection. This was 
not occurring. It has now been fixed.


================(Release Build  - Engineering Case #290133)================

LOAD TABLE gathers and generates statistics on columns when certain 
conditions are met. These statistics are subsquently fine tuned when 
queries are executed. However, updating the data can leave the statistics 
in a stale state until further queries are executed. If an application 
uses LOAD TABLE to load some columns with data that is all or mostly 
nulls and uses a subsequent update statement to populate these columns 
with non-null values, then the statistics for these columns could have 
been very wrong, resulting in bad performance for the first query run 
against this data. LOAD TABLE has been modified such that it will no 
longer generate statistics for those columns that are loaded with data 
that contains NULL values for more than 90% of the rows being loaded.




================(Release Build  - Engineering Case #290143)================

LOAD TABLE gathers and generates column statistics on both base and 
temporary tables. The statistics for base and global temporary tables 
are saved in the catalog for future use. However, it is not desirable 
to save column statistics on global temporary tables because the data 
in theses tables does not persist. LOAD TABLE has been changed so that 
it no longer saves statistics on global temporary tables.


================(Release Build  - Engineering Case #292049)================

Running the following  query in dbisql, while connected to "UltraLite 
8.0 Sample":

 

call ul_add_statement( 'custapi', 'Bogus', 'SELECT cust_id, cust_name, 
bogus_col_name FROM ULCustomer WHERE cust_name LIKE ?' )

 

would have resulted in the error: invalid expression near 'select ulplan(@statement)', 
which was not very informative.  The message now indicates that the 
column bogus_col_name does not exist.


================(Release Build  - Engineering Case #289973)================

Creating a unique index on existing data that contained nulls, could 
have resulted in a corrupt index.  For this to have occurred, the index 
being built must have contained duplicate entries (containing nulls), 
have been large with respect to cache size and the table must have been 
relatively unordered. This problem has been fixed.




================(Release Build  - Engineering Case #290430)================

If the datediff() function was used to compute the difference in seconds 
between two timestamps, the result would be incorrect if all of the 
following conditions were true:

	- the first timestamp was later than the second timestamp

	- the microsecond components of the two timestamps were not equal

	- the value of seconds plus microseconds for the first timestamp was 
greater than that for the second timestamp



For example:

	select datediff(second,'2002/06/23 12:00:00.100','2002/06/23 12:00:00.000')

would return -1 instead of 0. The correct value of 0 is now returned.




================(Release Build  - Engineering Case #290436)================

Phantom and anti-phantom locks were being incorrectly obtained on enties 
in the primary key index, when inserting or deleting Foreign Keys containing 
NULLs. These lock are no longer obtained.


================(Release Build  - Engineering Case #290169)================

The fix for issue 265354 introduced a problem where a valid statement 
such as that shown below would receive "Syntax error near "="":

	select @var=x

	from T

	where exists(...)

This is now fixed.




================(Release Build  - Engineering Case #290554)================

If a database was unloaded while the server was running with a language 
other than English or French, the day names in the event definitions 
in the reload.sql script would not have been understandable by a server 
running with a different language, (that was also neither English nor 
French). This was fixed by changing sa_event_schedules to use full-length 
English day names regardless of locale.

Similarly, schedules defined using short-form English day names would 
not have been understood by a server running with a language other than 
English. Full-length English day names are recognized regardless of 
the language used by the server.


================(Release Build  - Engineering Case #290629)================

For queries where the optimizer had an accurate count of the number 
of rows (e.g., no search conditions and a single base table), the optimizer 
could have returned the wrong estimate of the number of rows in SQLCOUNT 
after an open, if TOP n or FIRST was specified in the query.  Now the 
lesser of table size or the row limit is returned, rather than always 
the table size. If a positive number is returned in SQLCOUNT, it should 
be an accurate count of the rows that will be returned; if it is negative, 
it is the best guess of the optimizer. As a consequence, applications 
such as dbisqlc which use the SQLCOUNT as an accurate row count if it 
is positive could behave incorrectly with such queries.



For example: 

	select top 1 * from employee order by emp_fname

would have appeared to return no rows in dbisqlc.


================(Release Build  - Engineering Case #290662)================

The result of the truncnum() function, (also called "truncate"()), could 
have been an invalid numeric value, if the value of the second parameter, 
which is the position at which to truncate, was greater than the scale 
of the first argument and the number of digits before the decimal was 
non-zero. For example,

	select truncnum(1.23,3)

This is now fixed, but a workaround is to cast the first argument to 
have a higher precision. For example:

	select truncnum(cast(1.23 as numeric(5,2)),3)


================(Release Build  - Engineering Case #290743)================

If a query contained an IF or CASE expression that used a LIKE predicate 
where the pattern was not a constant (for example, it referred to a 
table column or a function of table columns), then the predicate could 
incorrectly return UNKNOWN.  For this to occur, the IF or CASE expression 
must have been evaluated in multiple contexts within the evaluation 
plan (possibly due to predicate inference) or there must have been a 
keyset driven cursor (possibly implicit due to an INSERT or UPDATE).



For example, the following query returned an incorrect answer before 
this fix:

	select 		if dept_name like dept_name then 1 endif

	from 		department

	order by 	dept_name

	for update

(the for update clause is used to force a keyset driven plan).



This problem is now fixed.


================(Release Build  - Engineering Case #290957)================

If the Return_date_time_as_string option was 'ON' (as it is for DBISQL), 
creating a procedure which returned a date/time column in its result 
set and which did not declare the result set explicitly, would have 
caused the result set column to be recorded as CHAR rather than DATE 
in the catalog. For example:

	create table dateTable(

	    id int not null primary key,

	    dateCol date );

	create PROCEDURE dba.Test()

 	  BEGIN

	    select id, dateCol from dateTable;

	  END;

In the above example, the second result set column for the procedure 
would have been defined as CHAR rather than DATE. This has now been 
corrected.


================(Release Build  - Engineering Case #275852)================

SQL statements that pass strings to the operating system, such as file 
or directory names, were passing the strings in the database character 
set, rather than the OS character set. Depending on the two character 
sets, this may have resulted in file or directory names containing incorrect 
characters. The server now converts the string into

the OS character set before passing it to the OS. Affected SQL

statements were:



- alter dbspace

- alter writefile

- alter procedure (external)

- backup database

- create [compressed | expanded] database

- create dbspace

- create decrypted file

- create procedure (external)

- create writefile

- drop database

- install java

- load table

- restore database

- start database

- unload [table]



Also affected were the following external procedures:

- xp_cmdshell

- xp_sendmail

- xp_startmail

- xp_startsmtp

- xp_read_file

- xp_write_file



as well as the following internal procedures:

- sa_server_option

- sa_get_request_times

- sa_get_request_profile


================(Release Build  - Engineering Case #291232)================

This fix corrects a problem where the server would quietly terminate.


================(Release Build  - Engineering Case #290909)================

An ANY or ALL predicate in the WHERE clause of a publication may have 
been evaluated incorrectly during an INSERT.  This has been fixed.


================(Release Build  - Engineering Case #291318)================

Selecting data from a long varchar column in a proxy table, via ODBC, 
would have caused the last byte of every 255 byte chunk to go missing. 
This has now been fixed.




================(Release Build  - Engineering Case #291803)================

If the confirm_received column of SYSREMOTEUSER contained NULL, the 
dbunload utility would have generated an incorrect sa_setremoteuser 
procedure call in reload.sql. The wrong call to sa_setremoteuser contained 
unprintable characters, no value for confirm_recieved or the confirm_received 
value of the previous sa_setremoteuser call. This has been fixed.


================(Release Build  - Engineering Case #291909)================

Trie-based index corruption was possible if a multi-byte string being 
indexed ended with a partial character (i.e. a lead byte followed by 
less than the requisite number of follow bytes). This is now fixed.


================(Release Build  - Engineering Case #291978)================

Repeatedly dropping another connection could have caused the server 
to fail, usually with a streams protocol error.  For this to have happened, 
a number of drop connection requests (greater than four) must have been 
issued before the first one took effect.  Further, the connection being 
dropped must have been working on a request, possibly blocked and the 
time taken to cancel the request must have been greater than the time 
to receive the drop requests.  This is now fixed.


================(Release Build  - Engineering Case #293212)================

ASA 8.0.0 introduced support for caching of execution plans in stored 
procedures. This caching avoids optimizing statements every time they 
are executed. In 8.0.0, this caching was not enabled for queries that 
returned result sets from procedures. This new feature enables that 
support.


================(Release Build  - Engineering Case #292161)================

Calling VALIDATE TABLE with a view name, or using dbvalid and explicitly 
listing a view name, would have caused the server to crash. This is 
now fixed.




================(Release Build  - Engineering Case #292514)================

If the value of @@error or @@rowcount was assigned to a variable using 
a SELECT statement involving more than one variable assignment, the 
values assigned for @@error or @@rowcount would have been incorrect. 
For example, the procedure below would display 1 as the value for @@rowcount 
when it should have been 0:



create procedure sybprob001() as

begin

  declare   @error_var int,

            @rowcount_var int,

            @table_name varchar(256)



  select @table_name = table_name 

  from sys.systable 

  where table_name like '%blah%'



  select @error_var = @@ERROR, @rowcount_var = @@ROWCOUNT

  message 'error_var should be 0, is ',@error_var

  message 'rowcount_var should be 0, is ',@rowcount_var

end;



call sybprob001();



This problem is now fixed. If only a single variable assignment was 
made, the value would have been correct. 




================(Release Build  - Engineering Case #292520)================

Calling sa_table_fragmentation() or sa_index_density() wcould have crashed 
the server if a remote table was defined in the database. This is fixed, 
but a workaround is to specify a table name to be analysed when calling 
either procedure, rather than omitting all parameters and having the 
procedure analyse all tables.


================(Release Build  - Engineering Case #292619)================

Using the SIMILAR() function on databases with a multibyte character 
set could have returned incorrect results or caused the server to crash. 
This is now fixed.


================(Release Build  - Engineering Case #292621)================

The server's temp directory can be controlled on CE platforms by setting 
the HKEY_CURRENT_USER\Software\Sybase\Adaptive Server Anywhere\8.0\TempFolder 
value in the registry. The engine will attempt to create the specified 
directory if it does not exist but the parent of the specified directory 
must already exist. If the directory specified by TempFolder does not 
exist and cannot be made, \Temp will be tried. If \Temp does not exist 
and cannot be made, the server will use the current directory.


================(Release Build  - Engineering Case #289515)================

When making a connection via jConnect, if the remote password login 
parameter was set to a large value, (for example when using the technique 
of adding database filename to the remote password and the database 
file path was large) then there was a very good chance that the connection 
would have failed with a message like "invalid user_id". This problem 
has been fixed.


================(Release Build  - Engineering Case #292812)================

When connected to the utility database, using strings longer than approximately 
one page in size could have caused the server to crash. The problem 
would have occurred if the length of the query text was long or of a 
long string was generated (eg, "select repeat( 'x', 10000 )). Strings 
in the utility database are now silently limited to approximately one 
page in length.


================(Release Build  - Engineering Case #292525)================

Assertion 201119 was possible when deleting from a keyset driven cursor.  
The following conditions were necessary:

1.  Primary key was a trie-based index

2.  Keyset driven cursor was used (possibly because of a DELETE with 
a self-referencing table)

3.  Rows were deleted from the base table after the keyset table was 
populated

At this point, the server could have attempted to delete rows that 
are not in the base table.


================(Release Build  - Engineering Case #290788)================

If a JDBC request was cancelled, then there was a chance the JDBC application 
would have failed with an unexpected exception. This problem was most 
likely to occur when closing a JDBC cursor. The problem has now been 
resolved.


================(Release Build  - Engineering Case #289351)================

When inserting numeric values into a database using ODBC or OLEDB could 
have resulted in a corrupt numeric value being stored in the database. 
This has been fixed.




================(Release Build  - Engineering Case #293087)================

For queries that return a large number of rows (for example, more than 
10^32), even in an intermediate result, the optimizer could have incorrectly 
returned the error:

	 -727 "The optimizer was unable to construct a valid access plan"

These types of queries can appear when no join conditions are specified 
between tables. For example, the following query would have given the 
error as the result of the FROM clause is 10^40 rows:

	select * from TBig0 T0, TBig1 T1, TBig2 T2, ...., TBig20 T20 where 
1=2

if table TBig<n> had 100 rows or more.



These types of queries are generated by some applications to collect 
schema information before posing a query with an actual WHERE clause


================(Release Build  - Engineering Case #293186)================

Assertion 201119 could have been generated when using a write file with 
a compressed database file.  This has been fixed.


================(Release Build  - Engineering Case #293302)================

Create table was taking a significant amount of time to complete when 
creating a table with large number of columns. The time taken would 
have increased exponentially with the number of columns in the table. 
This problem has been fixed.




================(Release Build  - Engineering Case #293407)================

A multithreaded Java Application could have crashed during Garbage Collection, 
if a thread waiting on a Java Monitor was notified before garbage collection 
began. This is now fixed.


================(Release Build  - Engineering Case #277744)================

The str() function was returning an incorrect result as shown below.  
The SQL statement



	select str(22222222202222222220.222222222, 30,9 );



should return the string "22222222202222222220.222222222" like ,but 
it was actually returning "22222222202222223360.0000000000".



This was due to the fact that the number 22222222202222222220.222222222 
was being converted internally to a floating-point value and, as such, 
was restricted in the amount of precision that could be maintained.  
For 64-bit IEEE floating-point representation, this amounts to about 
18 digits of accuracy. The result is also dependent on the run-time 
system/computer system in, (a Win32 result may differ from a Unix result). 
The fix was to limit the values for the second and third arguments to 
128 and set the maximum value for the floating-point value to a number 
less than 1E127.




================(Release Build  - Engineering Case #293384)================

Concurrent inserts into an empty index, or deleting the only entry from 
an index, could have resulted in a corrupt index, if it was a trie-based 
index.  Assertion 200602 was a likely symptom. This was more likely 
to have occurred on Unix and multiprocessor Windows-based systems. It 
is now fixed.




================(Release Build  - Engineering Case #293862)================

If a statement in a stored procedure received an execution error, such 
as division by zero, a conversion error, or a deadlock error, then subsequent 
executions of the statement could have given the error:

	-853 "Cursor not in a valid state"

This is now fixed, but a work-around would be to set the database option 
Max_plans_cached to 0.


================(Release Build  - Engineering Case #292648)================

If a procedure assigned a variable with the result of a subselect and 
then returned a result set later on, the result set was sometimes not 
picked up by the client. For example, consider the following procedure:



               create procedure DBA.test() 

               result(xlicencas integer) 

               begin 

               declare xLicencas integer; 

               declare xConnection integer; 

               set xConnection=(select NEXT_CONNECTION(null,null)); 


               set xLicencas=34; 

               select xLicencas 

               end 



The "set xConnection=(select NEXT_CONNECTION(null,null));" line would 
have caused the result set of "select xLicencas" to be dropped by the 
client. This problem has now been fixed.


================(Release Build  - Engineering Case #293867)================

If it is possible to satisfy the ORDER BY clause of a query by means 
of an index scan in either direction, the server attempts to do so in 
order to avoid the sort. When the index scan was being done in a backward 
direction, the server would have failed to avoid the unnecessary sort. 
As an example, consider the following query:



	select * from systable where table_id > 30 order by table_id desc



The server would have executed this query by performing a backward 
primary key index scan of systable as desired, but then also would have 
sorted the result set on table_id. The sort operation was not needed 
because the result set was already in the proper order due to the index. 
Now the server will no longer execute this unnecessary sort, resulting 
in improved performance.


================(Release Build  - Engineering Case #293998)================

If an archive backup to a tape drive was attempted on a NetWare server 
and libsybbr.nlm was NOT loaded, the backup would have failed with error 
-692, "Could not execute backup/restore DLL (syb_open) entry point." 
This has been fixed. As a workaround, load libsybbr.nlm on the server 
before attempting the backup.


================(Release Build  - Engineering Case #278206)================

If a UNION ALL query involved more than one proxy table, then there 
was a very good chance the result set would have been incorrect. In 
particular, the rows for one of the proxy tables would be duplicated 
n times where n is the number of

proxy tables, while the rows from the other proxy tables would not 
have been returned at all. This problem has now been fixed.


================(Release Build  - Engineering Case #292006)================

Creating, dropping or altering a publication could have caused errors 
such as "invalid expression near '???'", when a stored procedure was 
called which uses one of the tables involved in the publication. This 
has been fixed, but a workaround is to stop and restart the database 
after modifying the publication.


================(Release Build  - Engineering Case #294145)================

Specifying a long filename when using LOAD TABLE on a NetWare server 
may have resulted in error -602 "Cannot access file". This has been 
fixed.


================(Release Build  - Engineering Case #293423)================

Queries that used a comparison-based index could have returned incorrect 
results, (typically more rows than expected).



For example:



create table table1(c1 char(6) primary key); 

insert into table1 values('Austra'); 

select * from table1 where c1 = 'Australia'; 



would have returned 1 row when none should have been returned.



For the problem to have occurred, a column must have been searched 
for a value 'xxxyyy', where 'xxxyyy' truncated to the width of the column 
was 'xxx' and 'xxx' appeared in the column, (this could have  affected 
non-string columns as well).  Moreover, the index must have been fully 
hashed. This is now fixed.


================(Release Build  - Engineering Case #294193)================

Calling the system procedure xp_sendmail could have crashed the server 
when using SMTP. This is now fixed.




================(Release Build  - Engineering Case #294234)================

The server could have overstated the actual file fragment count for 
a file via the 'DBFileFragments' property, the 'LogFileFragments' property 
or in the server's message window when it opened a file. Typically, 
the fragmentation could have been incorrect after a disk defragmenter 
was run because relocated fragments were not always coalesced into one 
fragment even if they are physically adjacent on the disk. The fragmentation 
count should now be reported correctly.




================(Release Build  - Engineering Case #294107)================

Trying to unset a PUBLIC option, while there were still user settings 
for that option, would have caused the error:

     "Invalid option '%1' -- no PUBLIC setting exists"



This was incorrect and confusing. Now the following error occurs:

     "Cannot unset PUBLIC option '%1' since user settings exist"


================(Release Build  - Engineering Case #294229)================

If a LOAD TABLE statement resulted in an error (e.g. a conversion error), 
a subsequent call to a stored procedure which referenced the table could 
have caused the server to crash. The procedure must have been called 
at least once prior to executing the LOAD TABLE statement. This problem 
is now fixed.




================(Release Build  - Engineering Case #278043)================

Beginning with version 8.0.1, the LOAD TABLE statement recalculates 
the values for computed columns. If the COMPUTE expression of a computed 
column referenced a stored procedure, a user defined function or objects 
(like table or views) that were owned by other users, then the LOAD 
TABLE command in the reload.sql generated by dbunload may have failed 
because these objects could not be found. A new option clause has been 
added to the LOAD TABLE statement, COMPUTES { ON | OFF }. The default 
value is ON, but setting it to OFF disables the recalculation of computed 
columns. Now the LOAD TABLE commands in the reload.sql script will contain 
the new COMPUTES OFF clause to prevent recalculation of computed columns.


================(Release Build  - Engineering Case #294547)================

If a  view or derived table contained a subselect in the select list, 
the column was not used elsewhere, and the view or derived table was 
used inside of an ANY, ALL, or IN predicate, then the server could have 
failed with the following assertion:



	"Internal database error *** ERROR *** Assertion failed in f:\src\db\engine\language\parser\copytree.c 
at line 616 (Parser assertion:  Subqueries not copied during copy_with_annotation)  




The following queries are examples that caused the problem:

	CREATE TABLE X( ( table_name varchar(50),  publication_name varchar(50));

	SELECT 	table_name

	FROM   	X

	WHERE  	table_name NOT IN (SELECT foreign_tname FROM SYSFOREIGNKEYS)

(Note: SYSFOREIGNKEYS contains a subselect for column 'columns', which 
is not used)



SELECT  table_name

FROM    X R1

WHERE   table_name NOT IN

            ( SELECT col1

              FROM   ( SELECT table_name col1,

                              ( SELECT table_name

                                FROM X R2 ) col2

                        FROM   X R3

                      ) DT

            )



The error would not have appeared if the select list item for the ANY/ALL 
predicate was a not-null column, nor would it have occurred if the subselect 
column was used in the ANY/ALL subquery. This has now been fixed.


================(Release Build  - Engineering Case #276543)================

If a selectivity histogram stored information on values in a given range, 
say [a,b], and the query "SELECT * FROM my_table WHERE my_col = c" was 
executed, where c > b, the histogram may have been expanded to store 
information on all values between a and c. 

In this situation, the reported selectivities of values between b and 
c might have been nonsensical negative values. This is now fixed.


================(Release Build  - Engineering Case #294575)================

If the short plan (returned by the EXPLANATION function) for an UPDATE 
or DELETE statement was long (approximately one database page or larger), 
then the server could have crashed when executing the statement. Further, 
queries could crash the server if the short plan was long and the option 
Query_plan_on_open was 'On'. This has now been fixed.



This problem was most likely to occur when a view was used which contained 
a number of subqueries.


================(Release Build  - Engineering Case #294800)================

If a request was cancelled and the application was terminated before 
the cancel completed, it was possible in rare cases for the connection 
to remain until the server was shut down.  The connection which remained 
would keep any existing locks, use an engine "thread" (-gn parameter), 
and could not be dropped by DROP CONNECTION.  For this problem to have 
occurred, the request which was cancelled must have returned more data 
than the communication buffer size. This problem is now fixed.


================(Release Build  - Engineering Case #294940)================

Predicates are ordered by category and by selectivity. In an AND predicate, 
predicates that are estimated to accept fewer rows should be ordered 
earlier to reject rows as quickly as possible. A bug caused the ordering 
of the first two predicates to be wrong, with the predicate that accepted 
more rows evaluated before one that accepted fewer rows. This has now 
been corrected.


================(Release Build  - Engineering Case #295129)================

The follow problems have been fixed:



1 - Column statistics (i.e., histogram) could have contained inaccurate 
selectivities after a frequency value was added in the middle of an 
existing range,

2 -  Column statistics generated by LOAD TABLE could have contained 
inaccurate selectivity estimates in some situations,

3 - The server will now do a much better job of estimating join selectivities 
where the join attributes include columns that contain nearly unique 
data values, but are not declared as UNIQUE

4 - The server will now generate better selectivity estimates for columns 
that have no histograms, e.g., because the number of rows in the table 
is too small.


================(Release Build  - Engineering Case #294409)================

If the option PUBLIC.Auditing was set to ON, an operation which caused 
a referential action trigger to be fired (e.g. a cascading DELETE) would 
have crashed the server. This has been fixed.


================(Release Build  - Engineering Case #295041)================

The number of arguments to an expression is limited by the database 
page size, with the limit being approximately: 

	( <page-size> - 128 ) / 8

If an expression was built with more arguments than this limit, the 
assertion:

	101515 "Memory allocation size too large"

would fail.



A large number of arguments can be supplied to some built-in functions 
such as coalesce, ifnull, and so on, or to user functions. Further, 
when building an IF or CASE expression, the engine builds an expression 
that has as arguments all of the expressions used in predicates in the 
IF or CASE condition. If any expression was built with many arguments, 
the above assertion would fail.



After the fix, we give a syntax error:

	-156 "Invalid expression near '%1'"

for an expression with too many arguments.  Further, constant expressions 
are no longer included in the special argument to IF and CASE expressions.


================(Release Build  - Engineering Case #295468)================

Calling sa_disk_free_space when connected to an ASA server running on 
NetWare may have returned incorrect values. This has been fixed.


================(Release Build  - Engineering Case #295500)================

If xp_cmdshell was called when the server was running on a Windows .NET 
Operating System (eg Windows .NET Server), the server could have crashed.  
This has been fixed.


================(Release Build  - Engineering Case #296711)================

The locate() function takes an optional third parameter which specifies 
the starting offset for the search. As of this change, if the starting 
offset is negative, locate() will return the last matching string offset 
rather than the first. A negative offset indicates how much of the end 
of the string is to be excluded from the search. The number of bytes 
excluded is calculated as (-1 * offset) - 1.


================(Release Build  - Engineering Case #295804)================

In some cases the parser could have used an incorrect value of 15 for 
default precision for numerics, ignoring the actual setting for the 
option. As a result, large literal values could have lost precision 
beyond the 15 digits. As an example, the value 9223372036854775000 would 
have been parsed as 9223372036854770000. This problem has been fixed. 
Please note that this problem will not effect large values that are 
input as string because these values are not converted by the parser 
into the equivalent numeric values. So, a literal value of '9223372036854775000' 
would not be effected by the problem.


================(Release Build  - Engineering Case #295808)================

Index scans at isolation levels 1 & 2 could have returned rows that 
did not meet the search criteria, if there were also concurrent updates. 
This is now fixed.




================(Release Build  - Engineering Case #295840)================

If the jdemo.sql script,(found in samples\asa\java), was cancelled before 
it completed, a failure in the Java VM could have caused the server 
to crash. This has been fixed.


================(Release Build  - Engineering Case #295979)================

If a checkpoint occurred during an undo operation, the database could 
have been left in an unrecoverable state until the next checkpoint occurs. 
An undo operation is performed in the following situations:

- a rollback of a subtransaction

- a rollback to a savepoint

- a failed DML statement

- a cancelled statement (the undo actually occurs just before the next 
statement on that connection is executed).

 

A rollback of a full transaction was not affected by this problem. 
Checkpoints are now prevented during undo operations.


================(Release Build  - Engineering Case #296333)================

The server bypasses the optimizer and uses a cheaper mechanism to execute 
"simple" queries. When this bypass mechanism was used on INSERT, DELETE 
or UPDATE statements, the server would not have honoured a CANCEL request 
on these statements. These statements are now cancellable.


================(Release Build  - Engineering Case #296369)================

The "-d" server command-line option was documented as disabling asynchronous 
I/O; however, it has never served that purpose in 6.x and above. On 
Netware platforms "-d" forces the use of POSIX I/O (which also disables 
async I/O). On Windows platforms, "-d" has been completely ignored ever 
since 7.0.0. In 6.x on Windows 3.1, "-d" forced the use of "fast" I/O 
to bypass some performance problems with DOS's handling of large files 
on a FAT filesystem. In all other cases, "-d" was ignored in 6.x too.

 

The usage text for "-d" on Netware has been changed to "use POSIX I/O". 
The usage text for "-d" on Windows has been removed, but the option 
is still allowed on the command line and will continue to be ignored.


================(Release Build  - Engineering Case #296243)================

When the server was running on NetWare, and clients had connected and 
disconnected many times in a short period (a few minutes), the NetWare 
server could have abended with a "CPU Hog" message. This was more likely 
if the server was very busy and one or more connections were sending 
or receiving large amounts of data. This has been fixed.


================(Release Build  - Engineering Case #294124)================

Queries with complex WHERE conditions containing at least one OR predicate 
may have returned incorrect results. Which queries were affected is 
difficult to assess, as the likelihood of the problem was low and depended 
on the ordering of the conditions in the original expression. As a workaround, 
reorganizing the predicates in the query's WHERE clause may prevent 
the problem from occurring. As an example, the following query 



SELECT test.errorfield, test.keyfield

FROM test

WHERE

test.errorfield = '001DUQVPYNM'

AND ( test.field1 <> 'd'

 AND test.field1 <> 'D'

 AND test.field1 <> 'd'

 AND test.field1 <> 'D'

 AND (( test.field6 = '1') OR ( test.field6 = ' '))

 AND (('2002-07-12' <= test.field5 OR test.field5 = '1800-01-01' )

      AND('2002-07-12' >= test.field4 OR  test.field4 = '1800-01-01'  
))

 AND test.field2 = '001'

 AND test.field3 = '01')



would be incorrectly simplified to



SELECT test.errorfield, test.keyfield

FROM test

WHERE

(( test.field6 = '1') OR ( test.field6 = ' '))

 AND (('2002-07-12' <= test.field5 OR test.field5 = '1800-01-01' )

      AND('2002-07-12' >= test.field4 OR  test.field4 = '1800-01-01'  
))



This has been corrected.




================(Release Build  - Engineering Case #297603)================

When using an Address Windowing Extensions (AWE) cache, the server could 
have crashed or reported assertion failures such as 101412, 201100, 
201102, and 201114 (all of which are "page number on page do not match 
page requested"). Other assertion failures were possible and, in rare 
circumstance, database corruption could have occurred. The problem was 
not likely to have occurred on single-CPU machines. This has been fixed.


================(Release Build  - Engineering Case #297472)================

After a DELETE statement was executed on a column contained in an index, 
the statistics for that column may have been heavily skewed for values 
in the affected range.



For example, after running the following SQL code:



	create table foo ( c1 int primary key );

	insert into foo values (1);

	insert into foo values (3);

	create statistics foo;

	delete from foo where c1 < 2;



the foo.c1 histogram ( displayed by "call sa_get_histogram( 'c1', 'foo' 
)" ) would have  incorrectly reported the selectivity of values between 
1 and 3 to be 0.7. This issue has now been fixed.




================(Release Build  - Engineering Case #297415)================

The server collects statistics during normal query execution and uses 
the gathered statistics to "self-tune" the column histograms. The new 
option 'Update_statistics' can be set to 'OFF' which disables this gathering 
of statistics during query execution. By default, the option is turned 
'ON'. The option does not affect changes to statistics as a result of 
updates to data (ie LOAD/INSERT/UPDATE/DELETE). Under normal circumstances 
it should not be necessary to turn this option off.


================(Release Build  - Engineering Case #297062)================

If a prepared statement that involved proxy tables and host variables 
was executed, it would have very likely caused the server to crash. 
In the case where the server did not crash, the result set returned 
would very likely have been incorrect. This is now fixed.


================(Release Build  - Engineering Case #298948)================

The server could have leaked memory when calling a trigger on a table 
that contained columns with check constraints. This is now fixed.	




                      ******************************                      
                      ** Adaptive Server Anywhere **                      
                      **                          ** 
                      **  Sybase Central Plug-in  **                      
                      ******************************                      

================(Release Build  - Engineering Case #278935)================

On the Column property sheet, if the column's data type is TIMESTAMP, 
then CURRENT UTC TIMESTAMP and UTC TIMESTAMP can now be chosen as a 
system-defined default value.


================(Release Build  - Engineering Case #279219)================

Using the Create Database wizard to create a database with JDK 1.1 support 
and choosing to start a local server to perform the operation, would 
have resulted in a database with JDK 1.3 , not JDK 1.1 support as expected. 
This has been fixed.


================(Release Build  - Engineering Case #279221)================

Using the Create Database wizard to create a database for Windows CE, 
would have created a database with the UTF8 collation by default. This 
is no longer the case, since UTF8 is no longer a requirement for Windows 
CE databases.


================(Release Build  - Engineering Case #286100)================

If an attempt to connect to a local server failed and the logon dialog 
was kept open to try and connect to a remote server, it would always 
have failed to connect.  This has been fixed.




================(Release Build  - Engineering Case #286808)================

When profiling a procedure that contained a carriage return and line 
feed character at the end of each line, a box would appear in the source 
code of the profiling details panel.  This has been fixed.


================(Release Build  - Engineering Case #289889)================

Synchronization options defined for a Publication, MobiLink user or 
Synchronization Subscription would not have appeared on the Extended 
Options page of an object's property sheet, if the option names were 
defined in mixed or upper case, (ie,

"ScriptsVersion" or "SENDCOLUMNNAMES".) This problem has been corrected.



Note that since any settings made on the property have always used 
lowercase option names, this problem would only appear if an option 
was set by some means other than the property sheet; for example, using 
the "CREATE SYNCHRONIZATION SUBSCRIPTION" statement.


================(Release Build  - Engineering Case #290040)================

If a column was modified by opening the Column property sheet from within 
the Table Editor, the change would be lost if no other changes were 
made in the Table Editor. This has been fixed.



In addition, the Apply button is no longer displayed when a Column 
property sheet is opened from inside the Table Editor, since any changes 
made from a Column property sheet are actually applied when the Table 
Editor's Save menu item or toolbar button is clicked.


================(Release Build  - Engineering Case #289259)================

When editing a row in Sybase Central on a table's "Data" page (or in 
DBISQL in the "Results" panel), if none of the column values were changed 
and then ENTER was pressed, a message would occur warning that the row 
could not be updated. The message was really trying to say that no rows 
were updated because no rows had changed. Now, Sybase Central skips 
updating the database if it detects that the new column values are the 
same as the old ones. This is more efficient, and has the side-effect 
of eliminating the warning message.


================(Release Build  - Engineering Case #292795)================

Using the Sybase Central feature, Log Server Messages, with Log messages 
to a window selected, could have caused Sybase Central to hang. This 
has now been fixed.


================(Release Build  - Engineering Case #293080)================

Logging SQL statements to a window could have caused Sybase Central 
to hang.  This has now been fixed.


================(Release Build  - Engineering Case #293528)================

Sorting connections in the disconnect dialog and then selecting multiple 
connections to disconnect would have throw an exception.  This has now 
been fixed.


================(Release Build  - Engineering Case #293160)================

If the CREATE SYNCHRONIZATION SUBSCRIPTION or CREATE SYNCHRONIZATION 
USER statement was used to set the 'use_cookies' MobiLink connection 
setting on a publication, MobiLink user or synchronization subscription 
object, and then Sybase Central was used to edit the object, then the 
'use_cookies' setting would have been removed. In fact, the setting

was never displayed on the Connections page of the object's property 
sheet. Now, 'use_cookies' and any other advanced connection settings 
are displayed in an 'Advanced parameters' text field on the Connection 
page of the object's property sheet, and this value is retained when 
changes to the object are saved.


================(Release Build  - Engineering Case #297168)================

When running the Unload or Extract Database wizards, if the option to 
reload into a new database was checked, a new database name was specified 
and then the option was unchecked, the reload would occur anyway, ignoring 
the fact the option was unchecked. This has been fixed.




================(Release Build  - Engineering Case #288826)================

When using the Unload Database wizard to unload and reload a database 
that contained Java classes, JAR files or tables with Java columns, 
on a server that didn't contain Java support, the unload would have 
succeeded, but the reload would have failed. The Unload Database wizard 
now allows for excluding from the reload file any references to these 
Java objects, so that the reload SQL can be used on a server without 
Java support.


================(Release Build  - Engineering Case #297686)================

Adding a statistic to the chart via the file menu and then re-opening 
the file menu would have yielded the same addition menu item instead 
of a removal menu item.  This has now been fixed.


================(Release Build  - Engineering Case #288626)================

When clicking on the "Browse" button to browse for a file or directory, 
if the corresponding file or directory name text field was empty, then 
the chooser would initially open at the current user's home directory.  
Now, the last directory visited via a chooser in the current session 
of Sybase Central will be displayed.



Note that if the corresponding file or directory name text field is 
not empty, then the chooser will attempt to open at the directory contained 
in the text field.


================(Release Build  - Engineering Case #296404)================

It was not possible, using the Event Schedule property sheet, to create 
a schedule without a start date. In addition, opening the property sheet 
on a schedule which did not have a start date, would have caused Sybase 
Central to crash.  Now you can create and edit schedules without start 
dates.




                      ******************************                      
                      ** Adaptive Server Anywhere **                      
                      **                          ** 
                      **        Utilities         **                      
                      ******************************                      

================(Release Build  - Engineering Case #276683)================

This change fixes an intermittent problem, which could have caused DBISQL 
to become unresponsive for a while (10-90 seconds) or to report an internal 
error, if executing a statement which caused a lot of messages (more 
than 100, roughly), to be sent to the client within a couple of seconds. 
This problem was seen only when connecting via jConnect, since asynchronous 
messages are not supported at all when connecting through the JDBC-ODBC 
bridge.


================(Release Build  - Engineering Case #276698)================

An attempt to start a local personal server would have failed, (Assuming 
a valid userid/password and database file name), if:
1 -The "Search network for database servers" box was checked, and the 
connection failed, then
2 - Connection was retried with the "Search network for database servers" 
box unchecked.
	   
Note, this problem, which is now  fixed, actually affected all of the 
ASA Java administration tools.


================(Release Build  - Engineering Case #276816)================

The results table header would have been displayed only a few pixels 
high, thus obscuring the column names, if all of the following were 
true:
1 - The connection used the JDBC-ODBC bridge
2 - At least one of the column names was an empty string, or consisted 
of blanks.

For example, the following statement's results would have been displayed 
with a poorly-sized table header:
	SELECT 'Testing' as ' ', 'Value'

This problem has been fixed.


================(Release Build  - Engineering Case #277733)================

If Japanese double-width @, $, #, or _ characters were used in an unquoted 
identifier, DBISQL would have reported a "Lexical error". Now, DBISQL 
accepts these characters as valid parts of an identifier. The Unicode 
values for these characters are as follows:

Character        Unicode Value
---------------  -------------	
Double-width #   \uFF03
Double-width $   \uFF04
Double-width @   \uFF20
Double-width _   \uFF3F



================(Release Build  - Engineering Case #277883)================

If an OUTPUT statement that failed, was immediately reexecuted, the 
resulting error dialog contained the error message twice. This has been 
fixed.


================(Release Build  - Engineering Case #278698)================

The STOP ENGINE statement could have failed if the following were all 
true:

	

1. There was more than one local server, and

2. The current connection was to the default local server, and

3. The STOP ENGINE statement was trying to stop the other (non-default) 
local server.

	   

Also, dbisql could have report an internal error (crash) if a STOP 
ENGINE statement was executed while not connected.

	

Both problems have been fixed.


================(Release Build  - Engineering Case #278829)================

Executing a query that returned a NULL value for a LONG VARCHAR column, 
when connected to a database via the JDBC-ODBC bridge, would have resulted 
in an error reading the result set and no rows would have been displayed. 
This problem has now been fixed.


================(Release Build  - Engineering Case #279227)================

When the dbtsinfo utility was run on Windows platforms, it could have 
crashed when using the -i option, (information about client machine). 
This has been fixed.


================(Release Build  - Engineering Case #279359)================

When using the Procedure Debugger, the wrong source code would be displayed 
if the following occurred:

1 - Connected to a database,

2 - Disconnected from the database,

3 - Connected to a different database



From then on, attempting to display the source to any stored procedure 
usually displayed source for a different procedure. This problem is 
now fixed.


================(Release Build  - Engineering Case #262146)================

The dbinfo utility and the a_db_info structure structure will now report 
the version of the java classes installed in the database. The dbinfo 
utility will print this information with an additional line:



   Java classes installed: <version>



The <version> can be the JDK version (like 1.1.3, 1.1.8, or 1.3) or 
the word No if no java classed are installed to the database.


================(Release Build  - Engineering Case #279629)================

When importing data from a Lotus 1-2-3 spreadsheet, DBISQL was misinterpreting 
INTEGER records if the values they contained were negative. In that 
case, the imported value was always 32767 or 65535. This has been fixed.


================(Release Build  - Engineering Case #279708)================

Upgrading an ASA version 6.0.x database to a 8.0.x database, didn't 
upgrade ML system tables properly. The upgrade logic that copied scripts 
from ul_script to ml_script didn't explicitly name columns, and the 
implicit ordering caused the values in the script and script_language 
columns to get swapped. This has now been fixed.


================(Release Build  - Engineering Case #279744)================

Opening the "Find Server" dialog from the "Connect" dialog, then using 
the Windows task bar to activate some other application and then reactivating 
dbisql again, would have caused the "Connect" dialog to be brought to 
the top, instead of the "Find Server" dialog. The problem was that the 
"Connect" dialog was not enabled, the "Find Server" dialog had to have 
been activated and closed first. This would have been difficult to do, 
especially if the "Connect" dialog happened to completely obscure it. 
This problem has been fixed.



Note, this same problem affected all of the ASA administration tools 
-- dbisql, Sybase Central, dbconsole, and the Procedure Debugger.


================(Release Build  - Engineering Case #278696)================

Escape sequences in quoted strings used in ISQL statements (e.g. INPUT, 
OUTPUT, START DATABASE ON), were not being supported. Since DBISQL, 
(prior to 7.0.0), supported escape sequences, it is possible that old 
script files would not be forward-compatible. Here are the details:

	

1. The START DATABASE ... ON statement did not allow escape sequences 
in the file name.  Now it does. This problem came to light because of 
a script which had doubled up the backslashes in the database filename. 
The double backslash was not being converted to a single backslash. 
This was OK on Windows NT, which coalesced the backslashes automatically, 
but when the script was run on Win9x, the START DATABASE statement failed 
due to the operating system not handling a file name containing two 
consecutive backslashes. Double backslahes are now converted to a single 
backslash.

	   

2. Incomplete hexadecimal escape sequences caused a syntax error. Now 
they are left as-is. For example, the string "\x41" is converted to 
"A", but "\x4K" is now interpreted as is (a 4 character sequence).

	   

3. If an escape character preceded a character other than a "n", "x", 
or "u", the escape character was silently ignored. Now it is left as 
is. 	


================(Release Build  - Engineering Case #279252)================

The dbisqlc utility may have crashed if the connect string specified 
by the -c command-line option or entered in the connection dialog exceeded 
256 bytes. This has been fixed. Dbisqlc now uses buffers of 2048 bytes 
to store the connect string.


================(Release Build  - Engineering Case #286089)================

If a UNIQUE table constraint consisted of a large number of columns, 
dbunload would have created a very long line in reload.sql for the ALTER 
TABLE ADD UNIQUE statement, because all column names were put onto the 
same line. These long lines may have caused problems for text file editors. 
Now dbunload puts one column name per line just like for the CREATE 
INDEX statement.


================(Release Build  - Engineering Case #279517)================

The dbunload utility would have created an incorrect reload.sql file, 
if a column with a user defined datatype modified the DEFAULT value 
or CHECK constraint.

For example:



   CREATE DOMAIN speed_type  INT DEFAULT 50 CHECK (@a < 100);



   CREATE TABLE speed_violations (

          driver    char(40)

          speed     speed_type  );



   ALTER TABLE speed_violations MODIFY speed DEFAULT NULL;



   ALTER TABLE speed_violations MODIFY speed CHECK NULL;



The reload.sql would not have contained the ALTER TABLE statements 
to change the DEFAULT and the CHECK. This has been fixed.


================(Release Build  - Engineering Case #280268)================

Comments on triggers were not being unloaded with the trigger owner 
by dbunload. This could cause the reload.sql to generate a 'table not 
found' error during the reload.




================(Release Build  - Engineering Case #280188)================

The INPUT statement would have failed to import data, if the table name 
in the INPUT statement was qualified by an owner name, and it was responsible 
for creating the database table. For example, when DBISQL executed the 
following:

	

	INPUT INTO dba.myTable FROM myData.dbf FORMAT FOXPRO

	   

it would have incorrectly created a table called "dba.myTable" and 
incorrectly reported the error:

	

	ASA Error -131: Syntax error near ')' on line 

	     

This has been fixed, but a workaround was to remove the owner name 
prefix from the table name.

	

The problem occured only with the following file formats: DBASEII, 
DBASEIII, EXCEL, FOXPRO, LOTUS.

	




================(Release Build  - Engineering Case #286981)================

After adding a row to a result set which does not contain the primary 
key, the user is now warned that the default or computed values may 
not be shown and that the query should be rerun in order to display 
the row correctly. Previously, this message was displayed only when 
updating a row, now it is displayed when adding a row. This applies 
only to modifying table data directly in the Results pane in DBISQL, 
and also to the "Data" details panel for tables in the ASA plug-in for 
Sybase Central.




================(Release Build  - Engineering Case #287078)================

Upgrading a database would have failed, if the database had the option 
PERCENT_AS_COMMENT = OFF. The message was:

"Error in file sybprc50.sql at line 2473 with sqlcode -131

SQL error (-131) -- Syntax error near '' on line 62

This has been fixed


================(Release Build  - Engineering Case #288531)================

The following problems related to direct editing of table data have 
been fixed:



Updating a row could have failed, (the row was silently rolled back), 
if either



a) The table had no primary key and at least one TIME or TIMESTAMP 
column, or

b) There was a primary key, and one or more of the key columns was 
a TIME or TIMESTAMP



Deleting under these circumstances is not supported. The user is now 
notified that the update has failed in these cases. 



Updating a row would have failed, (the row was silently rolled back), 
if the result set contained a TIME or TIMESTAMP column, even if that 
column was not in the primary key. The row is now correctly updated.

                

Deleting a row could have failed, (the row was silently rolled back), 
if either



a) The table had no primary key and at least one TIME or TIMESTAMP 
column, or

b) There was a primary key, and one or more of the key columns was 
a TIME or TIMESTAMP



Deleting under these circumstances is not supported. In these cases, 
the row had been removed from the result table in the "Results" pane 
even though it had not actually been removed from the database. The 
row is now left in the "Results" table and the user is notified that 
the row was not deleted.


================(Release Build  - Engineering Case #286167)================

To correctly create views based on other views, the dbunload utility 
allows for specifying an iteration count, (-j option), for view creation 
statements. When using -j  the reload script checks to ensure that all 
views have been created. If a views has not been created the error message 
"Table 'viewname' not found" is displayed. When using dbunload -j with 
-ar, -ac or -an, the error message was:

     "Illegal cursor operation attempt"

which was not helpful. This has been fixed, dbunload will now display 
the error message

"Table 'viewname' not found" in these cases as well.


================(Release Build  - Engineering Case #275954)================

The SET command would not have displayed the proper value of permanent 
options whose values had been changed in the current session. Now it 
does.

For example:

Execute:  SET OPTION PUBLIC.DATE_FORMAT='YYYY'

Execute:  SET

The value shown for the DATE_FORMAT option was still the old one. Now 
'YYYY' is displayed.




================(Release Build  - Engineering Case #287206)================

when a custom collation was not in the script custom.sql, running dbinit 
-z or dbunload -ac/-an, only printed the message "Database creation 
failed" . Now the error message

is "Database creation failed Collation "name" not found".


================(Release Build  - Engineering Case #287939)================

Using the INPUT command with INPUT_FORMATs of dBaseIII or FoxPro, would 
have failed if the files had extra padding bytes in their headers. These 
files can now be read.


================(Release Build  - Engineering Case #288044)================

The "Connect" menu item was always enabled, even when already connected. 
Clicking 'Connect' while already connected caused the current connection 
to be closed, and the "Connect" dialog to be opened. Similarly, the 
"Disconnect" item was enabled, even when not connected, although clicking 
"Disconnect" while not connected did nothing. Now both menu items are 
only enabled when appropriate.


================(Release Build  - Engineering Case #288325)================

Running the dbunload utility with either of the -an or -ar options could 
have generated a syntax error. This would have occurred very rarely, 
only if "go" appeared as the last two characters in its 32K buffer.  
This is now fixed.




================(Release Build  - Engineering Case #289032)================

When a plan file was loaded with DBISQL, if the original SQL contained 
any of the following characters:



            - Less-than sign (<)

            - Greater-than sign (>)

            - Ampersand (&)

            - Apostrophe (')

            - Quotation mark (") 



the SQL Statement field would have contained the XML escape sequence 
corresponding to these characters, rather than the characters themselves. 
Here are the escape sequences:



            - Less-than sign (&lt;)

            - Greater-than sign (&gt;)

            - Ampersand (&amp;)

            - Apostrophe (&apos;)

            - Quotation mark (&quot;) 



Now the SQL Statement field contains what it did when the plan for 
the statement was created (i.e. the actual characters appear rather 
than their escape sequences.)


================(Release Build  - Engineering Case #286783)================

Doing a Replace All could have caused a hang or crash for some search/replace 
compinations like replace * with ** or ' with ''. This is now fixed.


================(Release Build  - Engineering Case #289219)================

DBISQL would have reported an internal error if a stored procedure was 
called and it's result was saved to an Excel file using the OUTPUT statement.

Eg:

            CALL sa_eng_properties;

            OUTPUT TO props.xls FORMAT EXCEL



This is now fixed.


================(Release Build  - Engineering Case #289309)================

DBISQL was seen to hang on startup intermittently on Windows 98 machines. 
The hang usually happened when the splash screen was opened. The problem 
was related to the Java Runtime Environment's use of DirectDraw on Windows. 
This fix disables the JRE's use of DirectDraw on Windows 95/98/Me.


================(Release Build  - Engineering Case #289051)================

Files created by the OUTPUT statement in FIXED format, were always terminated 
by "\n", even if the convention for the host operating system was "\r\n" 
(e.g. on Windows). This has been fixed.


================(Release Build  - Engineering Case #289531)================

The TABLE TYPE dropdown in the Query Editor, (ie TOOLS->EDIT QUERY), 
would have listed each table type multiple times, depending on how many 
disconnects and reconnects had occurred since dbisql was started. This 
is now fixed.


================(Release Build  - Engineering Case #289566)================

When attempting to set the ISQL_LOG option permanently, the value was 
not actually changed in the database. Logging was turned on/off, but 
the setting was lost once the connection was closed. Now the option 
is saved properly.


================(Release Build  - Engineering Case #291067)================

If only whitespace was selected in the "SQL Statements" field when the 
Query Editor was opened, dbisql would have reported an internal error. 
This has now been fixed.






================(Release Build  - Engineering Case #291280)================

If the command line utilities (like dbbackup, dbinit etc) were started 
with invalid switches, they would have returned exit code 0 (EXIT_OKAY). 
This has been fixed. Now when started with invalid switches, they will 
return 255 (EXIT_USAGE, invalid parameters on command line)..


================(Release Build  - Engineering Case #292564)================

The mnemonics on the "Start Logging" and "Stop Logging" menu items in 
the "SQL" menu have been changed (and now work). Previously, the mnemonics 
for the two items and their parent menu were all "S" -- a case that 
was not handled. Pressing "ALT+S, S" simply closed the menu without 
activating the menu item. Now, the mnemonics work as you might expect.


================(Release Build  - Engineering Case #292791)================

Closing a DBISQL window while a query was still executing, would not 
have stopped the query. It would have continued running even though 
the window was closed. Now, the program asks if you really want to close 
the window, and if "Yes", the query is aborted before the window is 
closed.


================(Release Build  - Engineering Case #290846)================

A query involving a trie-based index could have returned incorrect results 
or spurious RI constraint violations could have occurred or have been 
missed, (possibly resulting in a corrupt database).  For any of these 
to have occurred, an index probe performed during the operation in question 
must have searched for a particular value and have visited the slot 
after the last entry on a leaf page. This problem is now fixed.


================(Release Build  - Engineering Case #291409)================

The dbisql option, Command_delimiter, could not be set to be a backslash 
("\"). When it was, dbisql would have reported a "Lexical error". This 
has been corrected and now a backslash can be used as a command delimiter 
without any error.


================(Release Build  - Engineering Case #294020)================

DBxtract and DBunload would hang if the reload database was on a different 
server and an internal unload or an internal reload was requested.  
Now, when the unload database and reload database reside on different 
servers, a message is returned which indicates that the unload and reload 
must be external.


================(Release Build  - Engineering Case #294677)================

This fix corrects a number of problems related to the handling of single-line 
comments by DBISQL:



1 - single-line comments which did not end in a carriage return, line 
feed, or carriage return/line feed pair would have been corrupted before 
being sent to the database server.



For example, running:

                dbisql -q -d1 "message 'X' -- testing"

would have printed

                message 'X' -----------

instead of 

                message 'X' -- Testing



2 - if the "d1" command line option was specified, and the file started 
with a comment, that comment was displayed twice on the console. Now 
the comment is displayed only once.



3 - comments appearing within CREATE PROCEDURE or CREATE FUNCTION statements 
were being sent to the database server followed by an additional blank 
line. This extra blank line has now been removed.


================(Release Build  - Engineering Case #295673)================

Code in the reload.sql file to check if the maximum user_id in SYS.SYSTABLE 
in

the new database matched the maximum user_id in the old database (and 
executed a

RAISERROR 17001 if they were different) has been removed.


================(Release Build  - Engineering Case #295788)================

A NullPointerException could have occurred if two statements were executed, 
one immediately following the other. The problem did not occur every 
time, being sensitive to the scheduling of tasks within DBISQL itself. 
This has now been fixed.




================(Release Build  - Engineering Case #295218)================

Executing a SQL statement which contained double-width punctuation symbols 
could have caused DBISQL to report a "Lexical error". A common occurrence 
would have been when running the resulting RELOAD.SQL script after unloading 
a database with a multi-byte character set. The problem would have shown 
up if the database contained column names which contained double-width 
punctuation characters, (such as parentheses). This is now fixed so 
that such scripts can now be run without error.


================(Release Build  - Engineering Case #296282)================

When run on Unix platforms, "dbunload -an" would have created a database 
whose log file had a name like "foo.db.log". This has been corrected.


================(Release Build  - Engineering Case #296087)================

The dbtran utility could have translated offline transaction logs that 
did not belong to the running database and generated a single SQL file 
that included all the transactions from these non-related transaction 
logs as well as the related transaction log files, if all these transaction 
logs shared the same directory. Now it checks that the redo_end of the 
last offline log strictly matches the redo_begin of the next online 
log.


================(Release Build  - Engineering Case #297705)================

If the "Edit Source Path" menu item was clicked, then the "Help" button 
on the resulting dialog was clicked, the help window opened but could 
not have been closed. It was being incorrectly parented to the main 
Debugger window, rather than to the modal dialog from which the help 
window was opened. This has been fixed.


================(Release Build  - Engineering Case #298907)================

Selecting a plan view node with a large amount of detail HTML would 
not cause the right-hand detail viewer to update in an acceptable amount 
of time.  This could be reproduced by getting the graphical plan for 
a simple query (select * from some_table), selecting any node, and then 
re-selecting the root (SELECT) node.  Toggling between two nodes would 
eventually have caused the rendering delay to increase.



This response time has been improved (although a delay is still noticeable) 
and the performance no longer degrades with repeated selections.




                             ****************                             
                             **  Mobilink  **                             
                             **            ** 
                             ** ASA Client **                             
                             ****************                             

================(Release Build  - Engineering Case #277493)================

When using the JDBC-ODBC bridge, the value of a Real column fetched 
using Resultset.getInt(), would have had the wrong sign, if the value 
of the Real was close to INT32_MAX or INT32_MIN. This is now fixed.


================(Release Build  - Engineering Case #279372)================

When multiple MobiLink users were defined on a remote database, with 
overlapping publications, synchronization may not have proceed correctly. 
This problem could have manifested itself on a remote database where 
all the following were true.

- at least 2 MobiLink users were defined, say U1 and U2

- at least 2 publications are defined, say P1 and P2

- there existed some operation O, that affected both P1 and P2

- only U1 had a subscription to P1

- only U2 had a subscription to P2



Under these circumstances, if the subscription U1/P1 was synchronized, 
followed by the subscription U2/P2, then O may have been uploaded for 
U1/P1 but not U2/P2.  This problem is now fixed and did not occur if 
the -u switch was used to specify the MobiLink user on the dbmlsync 
command-line.


================(Release Build  - Engineering Case #279732)================

When synchronizing a subscription for a user (say U2), if dbmlsync encounters 
an update operation where the pre-image of the operation belongs to 
no publication subscribed to by U2, but the post-image belongs to some 
publication subscribed to by U2, then the update should be uploaded 
as an insert, since the row is expected to not exist on the consolidated 
database.  When all the conditions below were true, dbmlsync failed 
to convert the update to an insert.  As a result MobiLink would issue 
a warning and ignore the update.



- at least 2 MobiLink users were defined, say U1 and U2

- at least 2 publications are defined, say P1 and P2 

- U1 is subscribed to P1. U2 is subscribed to P2. No subscription exists 
between U1 and P2 or between U2 and P1.

- P1 and P2 both contain a table T1, but with different WHERE clauses 
or one publication has a WHERE clause and the other does not

- there exists a row R in T1 that satisfies the WHERE clause for P1 
but not for P2

- an update operation, O occurs on R and the post-image of the update 
satisfies the where clause for P2 



In this case, when P2 is synchronized, the update operation O would 
not be converted into an insert and so will be ignored by MobiLink. 





================(Release Build  - Engineering Case #290595)================

In the past, dbmlsync could not have coalesced some combinations of 
operations that could have been obtained when trigger actions were not 
being uploaded.  These unsupported combinations might have been encountered 
if, between 2 synchronizations, the following series of actions were 
applied to some row R that was in a table mentioned in the publication 
being synchronized.  (Note R did not have to satisfy the where clause 
for the publication.)



1. Some operation (insert,update or delete) was applied to R outside 
of a trigger.

2. An operation was applied to R from inside a trigger.

3. Another operation was applied to R outside of a trigger.



When dbmlsync encountered one of these unsupported combinations it 
would abandon synchronization and display a message box with the title 
"Assertion Failure" and text similar to "file dbtools\.\mergeupd.c at 
line # ????".



These cases are now correctly handled by dbmlsync and this message 
should no longer appear.


================(Release Build  - Engineering Case #286276)================

Both the MobiLink Server and the MobiLink ASA Client may have reported 
the error  "Protocol error" or the MobiLink Server alone may have reported 
the error "A network read failed. Unable to read data from the remote 
client", during ynchronization.  The client would then have stopped 
and not have been able to synchronize any more. Both of these problems 
have been fixed.


================(Release Build  - Engineering Case #290390)================

When a synchronization occured, if there were operations at the end 
of the log that did not affect the upload then the section of log that 
contained those operations was rescanned at the next synchronization.  
As a result the next synchronization took more time than it needed to. 
This behavior has been corrected


================(Release Build  - Engineering Case #292540)================

The MobiLink ASA Client, (and SQL Remote for ASA), may have complained 
that "Log operation at offset X has bad data at offset X + x" for versions 
less than 8.0.0 or "No log operation at offset X in the current transaction 
log" for versions greater than or equal to 8.0.0".  The problem was 
that DBMLSync or DBRemote had already updated their systable with a 
wrong log offset in the previous run.  This could have happened if

1) the last log operation in the latest offline transaction log was 
a "Commit"; and

2) in the online transaction log, there was no actual data to be uploaded 
or replicated.

This problem is now fixed.


================(Release Build  - Engineering Case #293539)================

Dbmlsync would have treated downloaded deletes that were for rows not 
present on the remote database as an error. Now, they are not longer 
treated as an error. As a result of this change, the sp_hook_dbmlsync_download_sql_error 
hook will no longer be called when a not-found delete is encountered.



If verbosity is turned on, then informational messages will be generated 
that indicate the number of not found delete's encountered for each 
table and which rows they were for.


================(Release Build  - Engineering Case #294215)================

When an sp_hook_dbmlsync_upload_end procedure was defined, dbmlsync 
would sometimes have faileed with the following error message:



Error: getFillDictEntrySQL() An input entry has not been set



when a log offset mismatch occurred between the remote and consolidated 
databases or if an error occurred during the upload phase of synchronization. 
This was an internal error message and should never be seen by users.  
The success or failure of synchronization was not affected by this message. 
This problem is now fixed and the message should no longer appear.


================(Release Build  - Engineering Case #295097)================

If an error occured during an upload, all operations included in the 
failed upload were lost, (they were not resent during the next upload), 
when all the following conditions were true:  

1) Dbmlsync was run so that it completed more than one synchronization 
of the same publication before it shut down.  This could have happened 
when scheduling options were used or if the restart parameter in the 
sp_hook_dbmlsync_end hook was used to restart a synchronization.

2) An error occured during the upload phase of synchronization, after 
which another synchronization attempt was made.

3) Log scan polling was enabled.  This is the default, logscan polling 
can be disabled using the -p command line option or the DisablePolling 
extended option.

4) The -n command line option had only been used once on the command 
line.

5) There was no publication not specified with the -n switch that included 
part of a table that was also included in a publication specified with 
the -n switch.

This problem has been corrected.


================(Release Build  - Engineering Case #295135)================

When a scheduling option was specified, dbmlsync would have crashed, 
if it encountered an error while loading synchronization information 
from the remote database. It now treats these errors as fatal and terminates 
immediately when one is encountered.


================(Release Build  - Engineering Case #295144)================

The dbmlsync start dialog on CE was  not able to handle command line 
switches with quotes. Common symptoms were failing to connect to a running 
database or an error reporting an invalid option value when quotes are 
involved in the Command switches field. The problem is now fixed.


================(Release Build  - Engineering Case #295492)================

When dbmlsync's scheduling option was used to schedule a subscription 
for synchronization, if the subscription was dropped, dbmlsync would 
crash at the next scheduled synchronization time for that subscription. 
Now if the subscription is dropped, dbmlsync will issue an error message 
and make no further attempts to sychronize the dropped subscription.


================(Release Build  - Engineering Case #291229)================

Clicking the shutdown button on dbmlsync, while the upload was being 
sent or while the download was being applied, would have caused the 
dbmlsync window to disappear immediately, but the process would not 
have terminated for some time.  During this time dbmlsync would continue 
to appear in the task list, disk activity might be observed and dbmlsync 
would have maintained its database connections.  If another instance 
of dbmlsync was started during this time, an error message like "unable 
to register 'sybase.asa.dbmlsync' " would have been generated. This 
has been corrected.


================(Release Build  - Engineering Case #297000)================

DBMLSync would not have reported an error, even if the requested starting 
log offset was beyond the end of the active transaction log (this can 
happen if the remote database is restored from a backup. Then it could 
have stopped working once the transaction log of this remote database 
has grown beyond this requested starting log offset. This is now fixed.


================(Release Build  - Engineering Case #298851)================

If primary keys for uploaded data contains string columns, dbmlsync 
running on CE may have produced an incorrect upload stream, if non-UTF8 
characters were involved. This problem is now fixed.


================(Release Build  - Engineering Case #298858)================

Dbmlsync may have crashed, due to a buffer overrun, if it encountered 
non-blob strings longer that 32759 bytes (the ASA limit is 32767). The 
problem is now fixed.




                  **************************************                  
                  **             Mobilink             **                  
                  **                                  ** 
                  ** Java Provider for Sybase Central **                  
                  **************************************                  

================(Release Build  - Engineering Case #291982)================

When a new SQL or Java connection or table script was created, the first 
line of the script would have contained a -- or // comment with the 
script version and event name.  This is no longer the case. The comment 
is no longer added to the script since these comments are problematic 
for some ODBC drivers.




                              **************                              
                              ** Mobilink **                              
                              **          ** 
                              ** Monitor  **                              
                              **************                              

================(Release Build  - Engineering Case #290019)================

Prior to this fix, the user name and/or script version would not be 
displayed for synchronizations that failed during authentication.




================(Release Build  - Engineering Case #289992)================

For long MobiLink Monitor sessions, synchronizations in the Overview 
could have overlapped and synchronizations that met higher-precedence 
watches could be obscured by synchronizations that met lower-precedence 
watches. Now synchronizations that meet higher-precedence watches are 
not obscured.


================(Release Build  - Engineering Case #296078)================

If the autosave option was enabled, opening the Monitor would have overwritten 
the previous autosave file, so autosaved information could not have 
been viewed after the Monitor was stopped. Also, exceptions could have 
occurred writing or reading the autosave file, and autosave would have 
only worked for the first connection to a MobiLink server. These problems 
have been fixed. Now if autosaving is enabled, it starts when the Monitor 
connects to a Mobilink server and stops when it disconnects. Thus previous 
autosave results will be preserved until connecting to a MobiLink server.


================(Release Build  - Engineering Case #296580)================

The Table pane of the MobiLink Monitor was not updating the display 
of a row until a new row was added or some other user action caused 
the row to be redrawn. This has been fixed. Rows are now updated at 
the same time that the Chart pane is updated, such as when new data 
is received from the MobiLink server.


================(Release Build  - Engineering Case #296607)================

Each time the MobiLink Monitor was closed and reopened, the height of 
the Table pane would shrink by one pixel. This has been fixed.




================(Release Build  - Engineering Case #296692)================

On File Save, there was no warning if an existing file was about to 
be overwritten . This has been fixed, a prompt has been added when a 
file is to be overwritten.


================(Release Build  - Engineering Case #297330)================

The Session Properties dialog had fields incorrectly labelled "First 
synchronization start" and "Last synchronization end." If an MLM file 
was read or a connect was made to a MobiLink server, these values might 
not be the same as the start or end of any synchronization. They have 
been changed to "Monitor session start" and "Monitor session end" to 
correctly label the values.


================(Release Build  - Engineering Case #297699)================

When opening a Monitor file, where the session length was much longer 
than the longest synchronization (e.g. a one year session with a longest 
sync of 4 seconds), the Monitor could could have crashed the Java VM. 
This has been fixed.


================(Release Build  - Engineering Case #297917)================

After pausing the MobiLink Monitor, the Overview and Chart should not 
be updated. However the Overview would have been updated if it was caused 
to be redrawn (eg. by covering and uncovering part of the Overview). 
Also when it was unpaused, the box in the overview would be momentarily 
drawn in the wrong position. Now the Overview correctly pauses, and 
the Chart and Overview are updated to the most recent data as soon as 
the Monitor is unpaused.


================(Release Build  - Engineering Case #298559)================

In MobiLink Monitor's New Watch (or Edit Watch) dialog, the table listing 
conditions did not make it clear what unit of time was being used. It 
would show seconds and milliseconds, always using a period for the decimal 
separator. This has been fixed. Times in the table are now displayed 
in ISO 8601 format.




                              **************                              
                              ** Mobilink **                              
                              **          ** 
                              ** Streams  **                              
                              **************                              

================(Release Build  - Engineering Case #279445)================

When a non-HTTP client tried to connect to a MobiLink HTTP server which 
used cookies, the server did not check for the protocol mismatch, causing 
both the server and client to hang. This is now fixed.


================(Release Build  - Engineering Case #279781)================

It was possible for either end of a synchronization, (UltraLite, dbmlsync 
or a MobiLink Server worker thread), to consume 100% CPU in the TCP/IP 
layer. This problem could also have affected HTTP clients, since HTTP 
is built upon TCP/IP as well. It is now fixed.




                       ****************************                       
                       **        Mobilink        **                       
                       **                        ** 
                       ** Synchronization Server **                       
                       ****************************                       

================(Release Build  - Engineering Case #279113)================

The MobiLink Server deadlock recovery delay, optionally specified with 
the -rd switch, is specified in seconds, but was being interpreted as 
milliseconds on WIndows platforms. When a deadlock occurred, the shorter 
delay could cause more deadlock retries, and possibly more failed synchronizations, 
(when the retry limit was exceeded). This  is now fixed.


================(Release Build  - Engineering Case #279593)================

When using an upload_update event, an ODBC function sequence error may 
have occurred when the following conditions were true:

- the table contained blobs (binary or character)

- one or more of the blobs (but not all) were NULL

This has now been fixed.


================(Release Build  - Engineering Case #288782)================

Prior to this fix, neither the download_cursor nor the download_delete_cursor 
could be implemented as a call to a stored procedure on some supported 
consolidated databases. Now this should work with all supported consolidated 
databases.




================(Release Build  - Engineering Case #293120)================

When fetching scripts from an Oracle consolidated database, some Oracle 
drivers had problems fetching Unicode, the script would have appeared 
to be "?????????????????".  This is now fixed.


================(Release Build  - Engineering Case #293189)================

The user name passed into a user script could be truncated if the first 
user name for the same worker thread was smaller and a DataDirect ODBC 
driver was used. The work around was to use the command line options 
"-ps 0".


================(Release Build  - Engineering Case #294808)================

As of 8.0.1, the MobiLink server uses savepoints with bulk operations, 
so that if an error occurs, the operation can be rolled back to a savepoint 
and then go into single-row mode to determine the row that caused the 
error. Unfortunately, when the ODBC driver is unknown, it is possible 
to attempt to execute invalid SQL. Now, when theODBC driver is unknown, 
savepoints are not used.




================(Release Build  - Engineering Case #294844)================

If an upload fails it will be retried, if the current row array size 
is larger than one (-s parameter).  Before retrying, the uploaded data 
is rolled back.  If the upload failed again, the rollback may not have 
been attempted unless an error handler script or begin/end upload script 
was available. The rollback should now always be done.


================(Release Build  - Engineering Case #296969)================

If the MobiLink server setup and/or upgrade scripts were applied in 
the "chained on" mode, the database server would complain "Stored procedure 
'procedure_name' may be run only in chained transaction mode.", when 
the MobiLink server stored procedures were executed in a "chained off" 
mode and vise versa. This problem is fixed.  Now these procedures can 
be executed in both the "chained on" and "chained off" modes, regardless 
of how there were applied.




                              ***************                              
                              ** Mobilink  **                              
                              **           ** 
                              ** Utilities **                              
                              ***************                              

================(Release Build  - Engineering Case #288342)================

When the command line options, -o or -ot, were specified on dbmluser, 
it would have created an empty file.  This is now fixed.




                              **************                              
                              ** Mobilink **                              
                              **          ** 
                              ** scripts  **                              
                              **************                              

================(Release Build  - Engineering Case #292992)================

To set up an Adaptive Server Enterprise database version 12.5 or later 
as the consolidated database in a MobiLink installation, you must use 
the syncase125.sql setup script. This file, along with setup scripts 
for other supported databases, is included in the MobiLink\setup subdirectory 
of your SQL Anywhere 8 directory.




               *********************************************               
               ** SQL Remote for Adaptive Server Anywhere **               
               **                                         ** 
               **        Database Tools Interface         **               
               *********************************************               

================(Release Build  - Engineering Case #279208)================

When a remote user is extracted, but the consolidated database has not 
yet received any messages from that user, the consolidated database 
sends "ping" messages to the remote. These messages start out being 
sent with the user's send frequency, then back off to once a day. This 
logic could have stopped working after a number of days, depending on 
the users send frequency, a message would then have been sent every 
send poll. This has been fixed.


================(Release Build  - Engineering Case #290114)================

SQL Remote may have complained about missing transaction logs, due to 
a problem tracking the log offset. This problem has been fixed.




             *************************************************             
             **   SQL Remote for Adaptive Server Anywhere   **             
             **                                             ** 
             ** File Messaging for Adaptive Server Anywhere **             
             *************************************************             

================(Release Build  - Engineering Case #294537)================

If a file address was specified as a UNC address (eg. \\server\volume\subdir), 
messages received by dbremote running on NetWare would have been processed 
correctly, but no messages would have been sent (an error would have 
been displayed). This has been fixed.



Note that UNC addresses are only valid on NetWare if the server matches 
the name of the server on which dbremote is running.




               *********************************************               
               ** SQL Remote for Adaptive Server Anywhere **               
               **                                         ** 
               **        SQL Remote Message Agent         **               
               *********************************************               

================(Release Build  - Engineering Case #278232)================

The text in the dbremote title bar, was not correctly reflecting the 
status of dbremote upon completion. This has now been fixed.


================(Release Build  - Engineering Case #291641)================

The dbremote switch "-os" has been changed so that it works as it did 
in older versions of the software.  The output log file was not always 
being truncated and renamed at the specified size.




================(Release Build  - Engineering Case #293122)================

In rare cases a consolidated dbremote could have sent messages that 
would cause errors the remote database involving undeclared and redeclared 
variables. The remote could also have missed data operations. This would 
have been most likely to happen when the consolidated was sending large 
messages to many remotes with a small or unset memory value (the -m 
command line flag). This problem is now fixed.




             ************************************************             
             **  SQL Remote for Adaptive Server Anywhere   **             
             **                                            ** 
             ** Vim Messaging for Adaptive Server Anywhere **             
             ************************************************             

================(Release Build  - Engineering Case #292673)================

When using VIM message replication with DBRemote the error message: 
"VIMSetMessageItem error code 1" could have occurred. This error would 
have stopped replication. It was more likely to have been seen when 
using ccMail. This problem has been fixed.




                        ***************************                        
                        **       UltraLite       **                        
                        **                       ** 
                        ** Analyser Java Classes **                        
                        ***************************                        

================(Release Build  - Engineering Case #295700)================

The code generated by the UltraLite analyzer was wrong for CASE expressions 
where the arguments could have been null. This has been fixed.




                           ********************                           
                           **   UltraLite    **                           
                           **                ** 
                           ** Code Generator **                           
                           ********************                           

================(Release Build  - Engineering Case #278201)================

Ulgen.exe could have generated an incorrect list of output files, if 
the following

conditions were satisfied:

1.  The fullpath to the output file was given

2.  One of the directories in the path contained a dot (.)

3.  No extension was given to the output file on the ulgen.exe command 
line

4.  The user was generating C or C++ code



This problem is now fixed.


================(Release Build  - Engineering Case #280238)================

In order to use syncronized publications, (specified with -v on ulgen 
command line), the analyzer generates a #define statement in order to 
specify which publications to syncronize.  These are of the form UL_PUB_(PUBNAME). 
However these #defines were not being written to a header file unless 
C++ code was being generated.  For regular ESQL code the #defines were 
not accessable. Now the #defines are placed in generated-file-name.h, 
(For generating C output), or in generated-file-name.hpp, For C++, ie. 
using -t C++ on ulgen command line), where generated-file-name is the 
name of the generated C or CPP file generated. You need to include the 
appropriate header file in any source file that needs the UL_PUB_ #defines




                          ***********************                          
                          **     UltraLite     **                          
                          **                   ** 
                          ** Runtime Libraries **                          
                          ***********************                          

================(Release Build  - Engineering Case #286311)================

If an Ultralite database was reset after performing at least one successful 
synchronization and a communications error occurred on the first sync 
attempt after being reset, then MobiLink would have failed with a 'sequence 
number too small' error.  Ultralite would have been unable to sync until 
Mobilink was manually adjusted with a new sequence number.  Alternatively, 
if Ultralite sync'd exactly once before it was reset,

then modified rows in the Ultralite client would never have been uploaded.  
In this

case synchronization would have continued and no error was reported. 
These problems are now fixed.



An Ultralite database may be reset by deleting the persistent store, 
or by

changing the sync user name.


================(Release Build  - Engineering Case #286624)================

If a non-communication error occured during a download, MobiLink may 
have reported that it was unable to finish writing the download stream, 
instead of reporting the client error it should have received. This 
has been fixed.


================(Release Build  - Engineering Case #287725)================

Supplying a string value to insert into a binary column, where the string 
required truncation to fit, could have caused incorrect values to be 
inserted into the row.




================(Release Build  - Engineering Case #288136)================

Calling ULData::PalmExit() would have closed the UltraLite store, but 
would not have remembered that it was closed.  If the database was deleted 
after this time, a call to ULData::PalmLaunch would still have believed 
that the database was still open and would not have recreated it. Multiple 
consecutive calls to either PalmLaunch or PalmExit did  not check to 
see if the database was open or closed. Now, both PalmLaunch and PalmExit 
check the status of the database and correctly set the flag to remember 
if it's open or closed.




================(Release Build  - Engineering Case #289188)================

When running UltraLite Java and trying to synchronize, if an out-of-memory 
error occurred, especially after uploading data, UltraLite would have 
lost information about the uploaded data and tried to upload the same 
data over and over again, causing non-unique index errors on the MobiLink 
server. In some cases, the .udb file was corrupted and the database 
file had to be rebuilt. Now if a memory error occurs, a fatal error 
is set and the synchronization stops.


================(Release Build  - Engineering Case #289183)================

When a Java UltraLite encountered a MobiLink user authentication error, 
if the application was shutdown and rerun it would have reported a communication 
exception instead of invalid userid and password, as it did the first 
time. Now the application will correctly report the invalid userid or 
password error on subsequent runs.




================(Release Build  - Engineering Case #294536)================

The following two errors that could have occurred when copying wide 
character strings from the database, have been fixed:



1.  Indicator variables used in a fetch on a non-nullable column type 
were ignored.  For all other domain types, UltraLite would always set 
the indicator variable properly, even if the column was declared as 
not null.



2.  If the destination buffer for a wide character strings was too 
small and the value needed to be truncated, the resulting string would 
not be null-terminated.  Now the UltraLite runtime will remove one more 
character to make room for the null character at the end.


================(Release Build  - Engineering Case #293635)================

Java UltraLite applications would have reported all index pages were 
full, and no space was left to create new index pages, (ArrayIndexOutOfBound 
exception), when there were only seven pages fully occupied. Actually, 
Java UltraLite is designed to have a maximum of 256 index pages. This 
is now fixed.




================(Release Build  - Engineering Case #295975)================

Giving an invalid vilename when trying to specify a  non-default database 
name on the Palm VFS filesystem  would have resulted in a memory error 
in the runtime, instead of the expected 'file not found' message. This 
behaviour has been corrected.




================(Release Build  - Engineering Case #297878)================

The function signatures of ?getLastDownloadTimeXXX? and ?countUploadRows? 
in the UltraLite JDBC class JdbcDatabase, are incorrectly documented. 
The functions documented are the internal implementations used by Java 
UltraLite runtime. They are awkward for end user to call in the application 
program. The correct function signatures should be those defined in 
class JdbcConnection.

 

In some Java UL applications like CustDB, the program obtains a JDBC 
connection to the local database through JDBC URL and database driver. 
No instance of JdbcDatabase will be created inside the scope of application 
program (it is automatically created in the scope of runtime code). 
In situation like this, many methods defined in JdbcDatabase cannot 
be called. Methods most likely to be called include user authentication 
methods ?grant()?, ?revoke()?, and synchronization status methods ?getLastDownloadTimeLong()?, 
?getLastDownloadTimeDate()?, ?countUploadRows?. These methods should 
be defined in the JdbcConnection class as well.



?getLastDownloadTimeCalendar()? should be dropped because Calendar 
is an abstract class in Java. The correct way for users to access a 
timestamp is through the Date class.




                          **********************                          
                          **    UltraLite     **                          
                          **                  ** 
                          ** SQL Preprocessor **                          
                          **********************                          

================(Release Build  - Engineering Case #274054)================

Running ulgen.exe with the output going to a file that happened to have 
been read-only, caused the usage screen to be displayed, instead of 
an error. This has been fixed, an error is now reported.






                         ************************                         
                         **     UltraLite      **                         
                         **                    ** 
                         ** Sample Application **                         
                         ************************                         

================(Release Build  - Engineering Case #288217)================

The custom build step for custdb.sqc for the Pocket PC 2002 emulator, 
incorrectly used the DSN "UltraLite 9.0 Sample", it has been correctled 
to "UltraLite 8.0 Sample".



Also, the default x86em UltraLite runtime has been changed from emulator 
to emulator30.  The x86em target of CustDB should compile and link without 
requiring any changes with Pocket PC, but when linking for Windows CE 
2.11, the link settings must be manually changed to link against the 
UltraLite runtime in the emulator directory instead of emulator30.


================(Release Build  - Engineering Case #293086)================

Building the PRC-Tools 2.0 version of the custdb sample generated the 
message "Unable to find mobilink.bmp."  This would have also resulted 
in the synchronization status dialog being blank when running custdb.prc. 
The bitmap that was missing has now been added.

